contract

package
v0.0.0-...-8654c45 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptedContract

type AcceptedContract struct {
	Hash            string
	BlockCipher     string
	BlockCipherMode string

	AsynchronousEncryptionScheme string
	SignatureScheme              string

	RsaPublicKey  *rsa.PublicKey
	RsaPrivateKey GetRSAPrivateKey
}

func GetAcceptedContract

func GetAcceptedContract(prvCtr *PrivateContract, pubCtr *PublicContract) (*AcceptedContract, error)

type ContractsGenerator

type ContractsGenerator struct {
	// contains filtered or unexported fields
}

func (*ContractsGenerator) CreateContracts

func (this *ContractsGenerator) CreateContracts(size int) error

type GetRSAPrivateKey

type GetRSAPrivateKey func() (*rsa.PrivateKey, error)

type PrivateContract

type PrivateContract struct {
	PublicContract
	RSAPrivateKey []*keys.RSAPrivateKey `yaml:"rsa_private_key,omitempty" json:"rsa_private_key,omitempty"`
}

type PublicContract

type PublicContract struct {
	AcceptedHashes           []string `yaml:"accepted_hashes" json:"accepted_hashes"`
	AcceptedBlockCyphers     []string `yaml:"accepted_block_cypher" json:"accepted_block_cypher"`
	AcceptedBlockCypherModes []string `yaml:"accepted_block_cypher_mode" json:"accepted_block_cypher_mode"`

	AcceptedAsynchronousEncryptionScheme []string `yaml:"accepted_asynchronous_encryption_scheme" json:"accepted_asynchronous_encryption_scheme"`
	AcceptedSignatureScheme              []string `yaml:"accepted_signature_scheme" json:"accepted_signature_scheme"`

	RSAPublicKey []*keys.RSAPublicKey `yaml:"rsa_public_key, omitempty" json:"rsa_public_key,omitempty"`
}

Jump to

Keyboard shortcuts

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