crypto

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(key ic.PrivKey, channelMessage proto.Message) ([]byte, error)

func ToPrivKey added in v0.1.4

func ToPrivKey(privKey string) (ic.PrivKey, error)

private key string to ic.PrivKey interface btfs config stores base64 of private key

func ToPubKey added in v0.1.4

func ToPubKey(pubKey []byte) (ic.PubKey, error)

public key string to ic.PubKey interface

func Verify

func Verify(key ic.PubKey, channelMessage proto.Message, sig []byte) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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