Versions in this module Expand all Collapse all v0 v0.0.1 Jan 10, 2025 Changes in this version + func ConvertToBigInt(v string) *big.Int + func ConvertToUint32(v string) uint32 + func CreateControlBlock(privateKey *btcec.PrivateKey, inscriptionScript []byte) ([]byte, error) + func CreateControlBlockWithPubKey(publicKey []byte, inscriptionScript []byte) ([]byte, error) + func CreateInscriptionScript(privateKey *btcec.PrivateKey, contentType string, body []byte) ([]byte, error) + func CreateInscriptionScriptWithPubKey(publicKey []byte, contentType string, body []byte) ([]byte, error) + func IsTaprootAddress(address string, params *chaincfg.Params) (bool, error) + func NewTapRootAddress(privateKey *btcec.PrivateKey, params *chaincfg.Params) (string, error) + func NewTapRootAddressWithScript(privateKey *btcec.PrivateKey, script []byte, params *chaincfg.Params) (string, error) + func NewTapRootAddressWithScriptWithPubKey(serializedPubKey []byte, script []byte, params *chaincfg.Params) string + type Input struct + type Inscription struct + func NewInscription(contentType string, body []byte) *Inscription + type Output struct + type TransactionBuilder struct + func NewTxBuild(version int32, params *chaincfg.Params) *TransactionBuilder + func NewTxBuildV1(params *chaincfg.Params) *TransactionBuilder + func (build *TransactionBuilder) AddInput(txId string, vOut uint32, privateKeyHex string, address string, value string, ...) + func (build *TransactionBuilder) AddOutput(address string, amount string) + func (build *TransactionBuilder) Build() (string, error) + func (build *TransactionBuilder) BuildWithSig(signatureHex, pubKeyHex string) (string, error) + func (build *TransactionBuilder) CalculateHash(pubKeyHex string) (string, error)