Documentation
¶
Index ¶
Constants ¶
View Source
const ( DisconnectCauseDelimiter uint32 = 0xdeadbeef DisconnectCauseNone uint32 = 0 DisconnectCauseProtocolRequestedNotSupported uint32 = 1 DisconnectCauseNotEnoughSecurityRequested uint32 = 2 DisconnectCauseTooMuchSecurityRequested uint32 = 3 DisconnectCauseCounterpartyKeyIdNotRecognised uint32 = 4 DisconnectCausePotpNotRecognised uint32 = 5 DisconnectCausePuzzleNotSolved uint32 = 6 DisconnectCauseSeverMisconfiguration uint32 = 7 )
View Source
const ClientHelloProtocol = 1
View Source
const PuzzleSHA512LZ = 1
Variables ¶
View Source
var DisconnectCauseString = map[uint32]string{ DisconnectCauseNone: "None", DisconnectCauseProtocolRequestedNotSupported: "Protocol requested not supported", DisconnectCauseNotEnoughSecurityRequested: "Not enough security Requested", DisconnectCauseCounterpartyKeyIdNotRecognised: "Counter party key not recognised", DisconnectCausePotpNotRecognised: "Pragmatic one-time-pad (potp) not recognised", DisconnectCausePuzzleNotSolved: "Puzzle not solved", DisconnectCauseSeverMisconfiguration: "Server misconfiguration", }
View Source
var SecureWireGoodState = []byte{'G', 'O', 'O', 'D'}
Functions ¶
This section is empty.
Types ¶
type ClientHello ¶
func (*ClientHello) KeyIdAsString ¶
func (k *ClientHello) KeyIdAsString() string
type DisconnectCause ¶
type PuzzleRequest ¶
type PuzzleResponse ¶
type PuzzleResponse struct {
Response [64]byte
}
type SharedSecret ¶
type SharedSecret struct {}
func (*SharedSecret) SharesJoined ¶
func (s *SharedSecret) SharesJoined() []byte
type SharedSecretBundleDescriptionResponse ¶
type SharedSecretBundleDescriptionResponse struct {}
Message used in the wire, describes how many 'SecretsCount' of size 'SecretSize' to read.
func (*SharedSecretBundleDescriptionResponse) PotpIdAsString ¶
func (b *SharedSecretBundleDescriptionResponse) PotpIdAsString() string
type SharedSecretRequest ¶
type SharedSecretRequest struct {}
func (*SharedSecretRequest) KeyIdPreferredAsString ¶
func (s *SharedSecretRequest) KeyIdPreferredAsString() string
Click to show internal directories.
Click to hide internal directories.