Versions in this module Expand all Collapse all v0 v0.1.0 Sep 2, 2021 Changes in this version + type BEngine struct + func New() *BEngine + func (e BEngine) DecryptKey(keyJSON []byte, pass string) (*crypto.PrivateKey, *crypto.PublicKey, error) + func (e BEngine) EncryptKey(priKey *crypto.PrivateKey, pass string) ([]byte, error) + func (e BEngine) GenKey(params ...interface{}) (*crypto.PrivateKey, *crypto.PublicKey, error) + func (e BEngine) MappingKey(privKey *crypto.PrivateKey, pubKey *crypto.PublicKey) (map[string]interface{}, map[string]interface{}, error) + func (e BEngine) Marshal(privKey *crypto.PrivateKey, pubKey *crypto.PublicKey) (privKeyBytes []byte, pubKeyBytes []byte, err error) + func (e BEngine) Name() string + func (e BEngine) Sign(hash []byte, priKey *crypto.PrivateKey) (*crypto.Signature, error) + func (e BEngine) Unmarshal(privKeyBytes, pubKeyBytes []byte) (privKey *crypto.PrivateKey, pubKey *crypto.PublicKey, err error) + func (e BEngine) Verify(hash []byte, sig *crypto.Signature) (bool, error) v0.0.1 Jul 14, 2019