package
2.0.49
Repository: https://github.com/infraboard/mcube.git
Documentation: pkg.go.dev

# Functions

Decrypt decrypts a passed message with a receiver private key, returns plaintext or decryption error.
Encrypt encrypts a passed message with a receiver public key, returns ciphertext or encryption error.
GenerateKey generates secp256k1 key pair.
NewPrivateKeyFromBytes decodes private key raw bytes, computes public key and returns PrivateKey instance.
NewPrivateKeyFromHex decodes hex form of private key raw bytes, computes public key and returns PrivateKey instance.
NewPublicKeyFromBytes decodes public key raw bytes and returns PublicKey instance; Supports both compressed and uncompressed public keys.
NewPublicKeyFromHex decodes hex form of public key raw bytes and returns PublicKey instance.

# Structs

PrivateKey is an instance of secp256k1 private key with nested public key.
PublicKey instance with nested elliptic.Curve interface (secp256k1 instance in our case).