tstokenlib 1.3.0
tstokenlib: ^1.3.0 copied to clipboard
An implementation of the TSL1 Token Protocol for the BSV blockchain.
1.3.0 #
On-chain Identity Anchoring & Hand-optimized Scripts
- Mandatory Rabin identity anchoring for NFT issuance: PP1 now verifies a Rabin signature
(
s² mod n == sha256(identityTxId || ed25519PubKey) + padding) during issuance, enforcing that only the holder of the identity key can mint tokens. TherabinPubKeyHashis a new required parameter oncreateTokenIssuanceTxnandPP1LockBuilder. - Hand-optimized PP1 script: Replaced the ~11KB compiled sCrypt template with a 2.5KB hand-optimized Bitcoin Script (~4.5x reduction).
- Hand-optimized PP5 script: Replaced the ~56KB compiled sCrypt template with an 8.2KB hand-optimized Bitcoin Script (~6.7x reduction).
- Rabin cryptographic utilities: New
Rabinclass with key generation, signing, and verification (lib/src/crypto/rabin.dart). - Fungible token support:
FungibleTokenToolwith full lifecycle ā mint, transfer, split, merge, and burn operations. - Issuer identity anchoring:
IdentityAnchorBuilderandIdentityVerificationfor linking tokens to ED25519-signed issuer identities. - Configurable fees:
TokenToolandFungibleTokenToolacceptdefaultFeeandnetworkTypeconstructor parameters.
1.0.0 #
- Initial version.