DotNetLightning


PeerChannelEncryptor Module

Functions and values

Function or value Description

decryptLengthHeader msg pce

Full Usage: decryptLengthHeader msg pce

Parameters:
Returns: Result<(uint16 * PeerChannelEncryptor), PeerError>
msg : byte array
pce : PeerChannelEncryptor
Returns: Result<(uint16 * PeerChannelEncryptor), PeerError>

decryptMessage msg pce

Full Usage: decryptMessage msg pce

Parameters:
Returns: Result<(byte array * PeerChannelEncryptor), PeerError>
msg : byte array
pce : PeerChannelEncryptor
Returns: Result<(byte array * PeerChannelEncryptor), PeerError>

encryptMessage msg pce

Full Usage: encryptMessage msg pce

Parameters:
Returns: byte array * PeerChannelEncryptor
msg : byte array
pce : PeerChannelEncryptor
Returns: byte array * PeerChannelEncryptor

getActOne pce

Full Usage: getActOne pce

Parameters:
Returns: byte array * PeerChannelEncryptor
pce : PeerChannelEncryptor
Returns: byte array * PeerChannelEncryptor

newInBound ourNodeSecret

Full Usage: newInBound ourNodeSecret

Parameters:
    ourNodeSecret : Key

Returns: PeerChannelEncryptor
ourNodeSecret : Key
Returns: PeerChannelEncryptor

newOutBound (arg1, ourNodeSecret)

Full Usage: newOutBound (arg1, ourNodeSecret)

Parameters:
Returns: PeerChannelEncryptor
arg0 : NodeId
ourNodeSecret : Key
Returns: PeerChannelEncryptor

processActOneWithEphemeralKey actOne ourNodeSecret ourEphemeral pce

Full Usage: processActOneWithEphemeralKey actOne ourNodeSecret ourEphemeral pce

Parameters:
Returns: Result<(byte array * PeerChannelEncryptor), PeerError>
actOne : byte array
ourNodeSecret : Key
ourEphemeral : Key
pce : PeerChannelEncryptor
Returns: Result<(byte array * PeerChannelEncryptor), PeerError>

processActOneWithKey actOne ourNodeSecret pce

Full Usage: processActOneWithKey actOne ourNodeSecret pce

Parameters:
Returns: Result<(byte array * PeerChannelEncryptor), PeerError>
actOne : byte array
ourNodeSecret : Key
pce : PeerChannelEncryptor
Returns: Result<(byte array * PeerChannelEncryptor), PeerError>

processActThree actThree pce

Full Usage: processActThree actThree pce

Parameters:
Returns: Result<(NodeId * PeerChannelEncryptor), PeerError>
actThree : byte array
pce : PeerChannelEncryptor
Returns: Result<(NodeId * PeerChannelEncryptor), PeerError>

processActTwo actTwo ourNodeSecret pce

Full Usage: processActTwo actTwo ourNodeSecret pce

Parameters:
Returns: Result<((byte array * NodeId) * PeerChannelEncryptor), PeerError>
actTwo : byte array
ourNodeSecret : Key
pce : PeerChannelEncryptor
Returns: Result<((byte array * NodeId) * PeerChannelEncryptor), PeerError>