You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SMT proof size is about 15k. Considering the block size limit, even if the size of other data in the transaction is negligibly small, the maximum number of transactions in one block is about 38(576/15 = 38.4).
Assuming that the average block time is 10s, the number of SMT leaves that can be updated per second is about 38*100/10 = 380. Considering other data sizes in the transaction, this value may be less than 300, or even less.
For CoTA NFT, the number of SMT leaves that can be updated per second determines the number of NFTs that can be minted per second.
And the keys of most of the SMT leaves in CoTA are the result of hashing, which has strong randomness.
So is there any possibility to reduce the size of SMT proof? Thanks
Without SMT proof, there are still 16691(32400-15709) bytes which are larger than the proof.
Can we also optimize them?
The restriction of witnesses limit can be easily removed by updating the script.
Yes. We plan to optimize to reduce the size of SMT origin data and we expect a maximum reduction of 7.5k for 100 update leaves, but this is only a 23% increase (7.5k/32k = 23%) and the SMT proof size still accounts for a large proportion.
Yes. We can remove the witness size limit by updating the script, but the block size still has a maximum limit. The TPS of mint will also not continue to increase due to the block size limit.
duanyytop
changed the title
SMT proof size is too large to mint more CoTA NFTs in one transaction
SMT proof size will lead to larger transaction size
Jul 30, 2022
Hello, we found the SMT proof size will be about 15k when updating 100 leaves for the SMT which already has about 1000 leaves.
Here is the test data:
The SMT proof size is about 15k. Considering the block size limit, even if the size of other data in the transaction is negligibly small, the maximum number of transactions in one block is about 38(576/15 = 38.4).
Assuming that the average block time is 10s, the number of SMT leaves that can be updated per second is about
38*100/10 = 380
. Considering other data sizes in the transaction, this value may be less than 300, or even less.For CoTA NFT, the number of SMT leaves that can be updated per second determines the number of NFTs that can be minted per second.
And the keys of most of the SMT leaves in CoTA are the result of hashing, which has strong randomness.
So is there any possibility to reduce the size of SMT proof? Thanks
@jjyr @TheWaWaR
The text was updated successfully, but these errors were encountered: