Documentation ¶
Index ¶
- 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
- type Inscription
- type Output
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToBigInt ¶
func ConvertToUint32 ¶
func CreateControlBlock ¶
func CreateInscriptionScript ¶
func IsTaprootAddress ¶
func NewTapRootAddress ¶
Types ¶
type Inscription ¶
type Inscription struct {
// contains filtered or unexported fields
}
func NewInscription ¶
func NewInscription(contentType string, body []byte) *Inscription
type TransactionBuilder ¶
type TransactionBuilder struct {
// contains filtered or unexported fields
}
func NewTxBuild ¶
func NewTxBuild(version int32, params *chaincfg.Params) *TransactionBuilder
func NewTxBuildV1 ¶
func NewTxBuildV1(params *chaincfg.Params) *TransactionBuilder
func (*TransactionBuilder) AddInput ¶
func (build *TransactionBuilder) AddInput(txId string, vOut uint32, privateKeyHex string, address string, value string, inscription *Inscription)
func (*TransactionBuilder) AddOutput ¶
func (build *TransactionBuilder) AddOutput(address string, amount string)
func (*TransactionBuilder) Build ¶
func (build *TransactionBuilder) Build() (string, error)
func (*TransactionBuilder) BuildWithSig ¶
func (build *TransactionBuilder) BuildWithSig(signatureHex, pubKeyHex string) (string, error)
func (*TransactionBuilder) CalculateHash ¶
func (build *TransactionBuilder) CalculateHash(pubKeyHex string) (string, error)
Click to show internal directories.
Click to hide internal directories.