Documentation ¶
Index ¶
- func S256() elliptic.Curve
- type Crypter
- func (this *Crypter) DoubleSha256(data []byte) []byte
- func (this *Crypter) GenerateKey() (crypter.IPrivateKey, crypter.IPublicKey, error)
- func (this *Crypter) Name() string
- func (this *Crypter) Sign(privateKey crypter.IPrivateKey, message []byte) ([]byte, error)
- func (this *Crypter) ToPrivateKey(data []byte) crypter.IPrivateKey
- func (this *Crypter) ToPublicKey(data []byte) crypter.IPublicKey
- func (this *Crypter) Verify(publicKey crypter.IPublicKey, message, sig []byte) bool
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypter ¶
type Crypter struct { }
func (*Crypter) DoubleSha256 ¶
func (*Crypter) GenerateKey ¶
func (this *Crypter) GenerateKey() (crypter.IPrivateKey, crypter.IPublicKey, error)
func (*Crypter) ToPrivateKey ¶
func (this *Crypter) ToPrivateKey(data []byte) crypter.IPrivateKey
func (*Crypter) ToPublicKey ¶
func (this *Crypter) ToPublicKey(data []byte) crypter.IPublicKey
type PrivateKey ¶
type PrivateKey ecdsa.PrivateKey
func (*PrivateKey) Bytes ¶
func (priv *PrivateKey) Bytes() []byte
func (*PrivateKey) Public ¶
func (priv *PrivateKey) Public() crypter.IPublicKey
Click to show internal directories.
Click to hide internal directories.