Documentation ¶
Index ¶
- type Encrypted
- type SealAccount
- func (s *SealAccount) FromStore(filename string, password string) (sa SealAccount, err error)
- func (s SealAccount) Seal(data []byte, hashCalculator hashes.IHashCalculator) (se seal.Entity, err error)
- func (s SealAccount) Sign(data []byte) ([]byte, error)
- func (s SealAccount) Store(filename string, password string, cipher ciphers.ICipher) (encrypted Encrypted, err error)
- func (s SealAccount) VerifySeal(data []byte, sl seal.Entity, hashCalculator hashes.IHashCalculator) (bool, error)
- func (s SealAccount) VerifySignature(data []byte, sig []byte) (bool, error)
- type StoreConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encrypted ¶
type Encrypted struct { Address string Data cipherCommon.EncryptedData Config StoreConfig }
type SealAccount ¶
type SealAccount struct { Address string SingerType string Signer signerCommon.ISigner }
func NewAccount ¶
func NewAccount(privateKey []byte, sg signers.ISignerGenerator) (sa SealAccount, err error)
func NewAccountForVerify ¶
func NewAccountForVerify(publicKey []byte, sg signers.ISignerGenerator) (sa SealAccount, err error)
func (*SealAccount) FromStore ¶
func (s *SealAccount) FromStore(filename string, password string) (sa SealAccount, err error)
func (SealAccount) Seal ¶
func (s SealAccount) Seal(data []byte, hashCalculator hashes.IHashCalculator) (se seal.Entity, err error)
func (SealAccount) VerifySeal ¶
func (s SealAccount) VerifySeal(data []byte, sl seal.Entity, hashCalculator hashes.IHashCalculator) (bool, error)
func (SealAccount) VerifySignature ¶
func (s SealAccount) VerifySignature(data []byte, sig []byte) (bool, error)
Click to show internal directories.
Click to hide internal directories.