Documentation ¶
Index ¶
- func SetDefaultScheme(scheme string) error
- func Sign(privKey keypair.PrivateKey, data []byte) ([]byte, error)
- func SignBySigner(data SignableData, signer Signer) ([]byte, error)
- func Verify(pubKey keypair.PublicKey, data, signature []byte) error
- func VerifyMultiSignature(data []byte, keys []keypair.PublicKey, m int, sigs [][]byte) error
- func VerifySignableDataContracts(data SignableData) error
- type SignableData
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultScheme ¶
func SignBySigner ¶
func SignBySigner(data SignableData, signer Signer) ([]byte, error)
func VerifyMultiSignature ¶
func VerifySignableDataContracts ¶
func VerifySignableDataContracts(data SignableData) error
Types ¶
type SignableData ¶
type SignableData interface { interfaces.CodeContainer ////Get the the SignableData's program hashes GetProgramHashes() ([]common.Address, error) SetPrograms([]*program.Program) GetPrograms() []*program.Program //TODO: add SerializeUnsigned SerializeUnsigned(io.Writer) error }
SignableData describe the data need be signed.
Click to show internal directories.
Click to hide internal directories.