Documentation ¶
Index ¶
- Constants
- type ScriptApi
- type ScriptApiImpl
- func (s *ScriptApiImpl) AnalyzeLockingScript(script *types.Script) (hashType types.HashType, err error)
- func (s *ScriptApiImpl) CreateFromAsm(asm string) (script *types.Script, err error)
- func (s *ScriptApiImpl) CreateFromAsmStrings(asmStrings []string) (script *types.Script, err error)
- func (s *ScriptApiImpl) CreateMultisig(pubkeys []*types.Pubkey, requireSigNum uint32) (script *types.Script, err error)
- func (s *ScriptApiImpl) IsCheckHashType(hashType types.HashType, script *types.Script) (bool, error)
- func (s *ScriptApiImpl) Parse(script *types.Script) (asmStrings []string, err error)
- func (s *ScriptApiImpl) ParseMultisig(script *types.Script) (pubkeys []*types.Pubkey, requireSigNum uint32, err error)
- func (p *ScriptApiImpl) WithPubkeyApi(pubkeyApi key.PubkeyApi) *ScriptApiImpl
Constants ¶
View Source
const ( MaxMultisigPubkeyNum = 20 MaxP2shMultisigPubkeyNum = 16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScriptApi ¶ added in v0.3.14
type ScriptApi interface { CreateFromAsm(asm string) (script *types.Script, err error) CreateFromAsmStrings(asmStrings []string) (script *types.Script, err error) Parse(script *types.Script) (asmStrings []string, err error) ParseMultisig(script *types.Script) (pubkey []*types.Pubkey, requireSigNum uint32, err error) CreateMultisig(pubkeys []*types.Pubkey, requireSigNum uint32) (script *types.Script, err error) AnalyzeLockingScript(script *types.Script) (hashType types.HashType, err error) IsCheckHashType(hashType types.HashType, script *types.Script) (bool, error) }
type ScriptApiImpl ¶
type ScriptApiImpl struct { cfdErrors.HasInitializeError // contains filtered or unexported fields }
func NewScriptApi ¶ added in v0.3.14
func NewScriptApi() *ScriptApiImpl
NewScriptApi returns an object that defines the API for Script
func (*ScriptApiImpl) AnalyzeLockingScript ¶ added in v0.3.18
func (*ScriptApiImpl) CreateFromAsm ¶ added in v0.3.14
func (s *ScriptApiImpl) CreateFromAsm(asm string) (script *types.Script, err error)
func (*ScriptApiImpl) CreateFromAsmStrings ¶ added in v0.3.14
func (s *ScriptApiImpl) CreateFromAsmStrings(asmStrings []string) (script *types.Script, err error)
func (*ScriptApiImpl) CreateMultisig ¶ added in v0.3.14
func (*ScriptApiImpl) IsCheckHashType ¶ added in v0.3.18
func (*ScriptApiImpl) Parse ¶ added in v0.3.14
func (s *ScriptApiImpl) Parse(script *types.Script) (asmStrings []string, err error)
func (*ScriptApiImpl) ParseMultisig ¶ added in v0.3.14
func (*ScriptApiImpl) WithPubkeyApi ¶ added in v0.3.14
func (p *ScriptApiImpl) WithPubkeyApi(pubkeyApi key.PubkeyApi) *ScriptApiImpl
WithPubkeyApi This function set a pubkey api.
Click to show internal directories.
Click to hide internal directories.