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"` }
Click to show internal directories.
Click to hide internal directories.