cryptography

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCryptographyService

func NewCryptographyService() insolar.CryptographyService

func NewKeyBoundCryptographyService

func NewKeyBoundCryptographyService(privateKey crypto.PrivateKey) insolar.CryptographyService

func NewStorageBoundCryptographyService

func NewStorageBoundCryptographyService(path string) (insolar.CryptographyService, error)

Types

type NodeCryptographyService added in v0.9.0

type NodeCryptographyService struct {
	KeyStore                   insolar.KeyStore                   `inject:""`
	PlatformCryptographyScheme insolar.PlatformCryptographyScheme `inject:""`
	KeyProcessor               insolar.KeyProcessor               `inject:""`
}

func (*NodeCryptographyService) GetPublicKey added in v0.9.0

func (cs *NodeCryptographyService) GetPublicKey() (crypto.PublicKey, error)

func (*NodeCryptographyService) Sign added in v0.9.0

func (cs *NodeCryptographyService) Sign(payload []byte) (*insolar.Signature, error)

func (*NodeCryptographyService) Verify added in v0.9.0

func (cs *NodeCryptographyService) Verify(publicKey crypto.PublicKey, signature insolar.Signature, payload []byte) bool

Jump to

Keyboard shortcuts

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