Documentation ¶
Index ¶
- func Clearup()
- func Decrypt(priv *PriveKey, cipertext []byte) ([]byte, error)
- func Decrypt1(priv *PriveKey, cipertext []byte) ([]byte, error)
- func Encrypt(pub *PublicKey, msg []byte) ([]byte, error)
- func Encrypt1(pub *PublicKey, msg []byte) ([]byte, error)
- func Hash(pub *PublicKey, msg []byte) ([]byte, error)
- func Hash2(msg []byte) ([]byte, error)
- func Init()
- func Ripemd160(data []byte) []byte
- func Sigbin2Der(b []byte) ([]byte, error)
- func Sign(priv *PriveKey, hash []byte) ([]byte, error)
- func Verify(pub *PublicKey, hash, sig []byte) error
- type PriveKey
- type PublicKey
- func (k *PublicKey) Address() ([]byte, error)
- func (k *PublicKey) AddressString() string
- func (k *PublicKey) DecodeString(s string) error
- func (k *PublicKey) EncodeString() string
- func (k *PublicKey) Hash() ([]byte, error)
- func (k *PublicKey) HashString() string
- func (k *PublicKey) OStrDecode(buf []byte) error
- func (k *PublicKey) OStrEncode() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sigbin2Der ¶
Types ¶
type PriveKey ¶
type PriveKey struct { *PublicKey // contains filtered or unexported fields }
func DERDecodePrivateKey ¶
func NewKeyFormSecret ¶
func (*PriveKey) DecodeString ¶
func (*PriveKey) EncodeString ¶
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func OStrDecodePublicKey ¶
func (*PublicKey) AddressString ¶
func (*PublicKey) DecodeString ¶
func (*PublicKey) EncodeString ¶
func (*PublicKey) HashString ¶
func (*PublicKey) OStrDecode ¶
func (*PublicKey) OStrEncode ¶
Click to show internal directories.
Click to hide internal directories.