secretkey

package
v0.0.0-...-b73af74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const EncryptedKeyLength = 32 + 4 + 1 // key+hash+pad

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) ([]byte, error)

func Encode

func Encode(data []byte) []byte

func Encrypt

func Encrypt(key *Key, passphrase []byte) []byte

Encrypt a secret key using BIP38-style encryption.

func WriteFile

func WriteFile(key *Key, path string) error

Types

type Key

type Key [32]byte

func Decrypt

func Decrypt(src []byte, passphrase []byte) (*Key, bool)

func New

func New() *Key

func ReadFile

func ReadFile(path string) (*Key, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL