Documentation ¶
Index ¶
- Constants
- func Generate(mode Mode, script *types.Script) (string, error)
- func GenerateAcpAddress(secp256k1Address string) (string, error)
- func GenerateChequeAddress(senderAddress, receiverAddress string) (string, error)
- func GenerateFullPayloadAddress(hashType string, mode Mode, script *types.Script) (string, error)
- func GenerateSecp256k1MultisigScript(requireN, threshold int, publicKeys [][]byte) (*types.Script, []byte, error)
- type AddressGenerateResult
- type Mode
- type ParsedAddress
- type Type
Constants ¶
View Source
const ( Mainnet Mode = "ckb" Testnet Mode = "ckt" TypeFull Type = "Full" TypeShort Type = "Short" ShortFormat = "01" FullDataFormat = "02" FullTypeFormat = "04" CodeHashIndexSingleSig = "00" CodeHashIndexMultisigSig = "01" CodeHashIndexAnyoneCanPay = "02" )
View Source
const ( MAINNET_ACP_CODE_HASH = "0xd369597ff47f29fbc0d47d2e3775370d1250b85140c670e4718af712983a2354" TESTNET_ACP_CODE_HASH = "0x3419a1c09eb2567f6552ee7a8ecffd64155cffe0f1796e6e61ec088d740c1356" MAINNET_CHEQUE_CODE_HASH = "0xe4d4ecc6e5f9a059bf2f7a82cca292083aebc0c421566a52484fe2ec51a9fb0c" TESTNET_CHEQUE_CODE_HASH = "0x60d5f39efce409c587cb9ea359cefdead650ca128f0bd9cb3855348f98c70d5b" )
Variables ¶
This section is empty.
Functions ¶
func GenerateAcpAddress ¶ added in v0.43.1
func GenerateChequeAddress ¶ added in v0.43.1
func GenerateFullPayloadAddress ¶ added in v0.2.1
Types ¶
type AddressGenerateResult ¶ added in v0.43.1
func GenerateShortAddress ¶ added in v0.43.1
func GenerateShortAddress(mode Mode) (*AddressGenerateResult, error)
type ParsedAddress ¶
func Parse ¶
func Parse(address string) (*ParsedAddress, error)
func ValidateChequeAddress ¶ added in v0.3.0
func ValidateChequeAddress(addr string, systemScripts *utils.SystemScripts) (*ParsedAddress, error)
Click to show internal directories.
Click to hide internal directories.