Documentation ¶
Index ¶
- func DecodeInscriptionFromBin(script []byte) (id string)
- func DecodeTokensFromSwapPair(tickPair string) (token0, token1 string, err error)
- func GetAddressFromScript(script []byte, params *chaincfg.Params) (string, error)
- func GetHash256(data []byte) (hash []byte)
- func GetModuleFromScript(script []byte) (module string, ok bool)
- func GetPkScriptByAddress(addr string, netParams *chaincfg.Params) (pk []byte, err error)
- func GetSha256(data []byte) (hash []byte)
- func GetValidUniqueLowerTickerTicker(ticker string) (lowerTicker string, err error)
- func HashString(data []byte) (res string)
- func PayToTaprootScript(taprootKey *btcec.PublicKey) ([]byte, error)
- func PayToWitnessScript(pubkey *btcec.PublicKey) ([]byte, error)
- func ReverseBytes(data []byte) (result []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressFromScript ¶
GetAddressFromScript Use btcsuite to get address
func GetHash256 ¶
func GetModuleFromScript ¶
func GetPkScriptByAddress ¶
func HashString ¶
func PayToTaprootScript ¶
PayToTaprootScript creates a pk script for a pay-to-taproot output key.
func PayToWitnessScript ¶
PayToWitnessScript creates a pk script for a pay-to-wpkh output key.
func ReverseBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.