DotNetLightning


PeerChannelEncryptorMonad Module

Might remove in the future

Types

Type Description

PeerChannelEncryptorComputation<'T>

PeerChannelEncryptorComputationBuilder

Functions and values

Function or value Description

bindP f xT

Full Usage: bindP f xT

Parameters:
Returns: PeerChannelEncryptorComputation<'T2>
f : 'T1 -> PeerChannelEncryptorComputation<'T2>
xT : PeerChannelEncryptorComputation<'T1>
Returns: PeerChannelEncryptorComputation<'T2>

decryptLengthHeader msg

Full Usage: decryptLengthHeader msg

Parameters:
    msg : byte array

Returns: PeerChannelEncryptorComputation<uint16>
msg : byte array
Returns: PeerChannelEncryptorComputation<uint16>

decryptMessage msg

Full Usage: decryptMessage msg

Parameters:
    msg : byte array

Returns: PeerChannelEncryptorComputation<byte array>
msg : byte array
Returns: PeerChannelEncryptorComputation<byte array>

encryptMessage msg

Full Usage: encryptMessage msg

Parameters:
    msg : byte array

Returns: PeerChannelEncryptorComputation<byte array>
msg : byte array
Returns: PeerChannelEncryptorComputation<byte array>

fromFailableFunction f

Full Usage: fromFailableFunction f

Parameters:
Returns: PeerChannelEncryptorComputation<'T>
f : PeerChannelEncryptor -> Result<('T * PeerChannelEncryptor), PeerError>
Returns: PeerChannelEncryptorComputation<'T>

fromFailableReaderFunction f

Full Usage: fromFailableReaderFunction f

Parameters:
Returns: PeerChannelEncryptorComputation<'T>
f : PeerChannelEncryptor -> Result<'T, PeerError>
Returns: PeerChannelEncryptorComputation<'T>

fromPlainFunction f

Full Usage: fromPlainFunction f

Parameters:
Returns: PeerChannelEncryptorComputation<'T>

Lift non-failable function to monadic world

f : PeerChannelEncryptor -> 'T * PeerChannelEncryptor
Returns: PeerChannelEncryptorComputation<'T>

fromReaderFunction f

Full Usage: fromReaderFunction f

Parameters:
Returns: PeerChannelEncryptorComputation<'T>

Lift non-failable reader function to monadic world

f : PeerChannelEncryptor -> 'T
Returns: PeerChannelEncryptorComputation<'T>

fromWriterFunction f

Full Usage: fromWriterFunction f

Parameters:
Returns: PeerChannelEncryptorComputation<unit>

Lift non-failable writer function to monadic world

f : PeerChannelEncryptor -> PeerChannelEncryptor
Returns: PeerChannelEncryptorComputation<unit>

mapP f

Full Usage: mapP f

Parameters:
    f : 'a -> 'b

Returns: PeerChannelEncryptorComputation<'a> -> PeerChannelEncryptorComputation<'b>
f : 'a -> 'b
Returns: PeerChannelEncryptorComputation<'a> -> PeerChannelEncryptorComputation<'b>
Returns: PeerChannelEncryptorComputationBuilder

processActOneWithEphemeralKey actOne key ourEphemeral

Full Usage: processActOneWithEphemeralKey actOne key ourEphemeral

Parameters:
    actOne : byte array
    key : Key
    ourEphemeral : Key

Returns: PeerChannelEncryptorComputation<byte array>
actOne : byte array
key : Key
ourEphemeral : Key
Returns: PeerChannelEncryptorComputation<byte array>

processActOneWithKey actOne key

Full Usage: processActOneWithKey actOne key

Parameters:
    actOne : byte array
    key : Key

Returns: PeerChannelEncryptorComputation<byte array>
actOne : byte array
key : Key
Returns: PeerChannelEncryptorComputation<byte array>

processActThree actThree

Full Usage: processActThree actThree

Parameters:
    actThree : byte array

Returns: PeerChannelEncryptorComputation<NodeId>
actThree : byte array
Returns: PeerChannelEncryptorComputation<NodeId>

processActTwo actTwo ourNodeSecret

Full Usage: processActTwo actTwo ourNodeSecret

Parameters:
    actTwo : byte array
    ourNodeSecret : Key

Returns: PeerChannelEncryptorComputation<byte array * NodeId>
actTwo : byte array
ourNodeSecret : Key
Returns: PeerChannelEncryptorComputation<byte array * NodeId>

returnP x

Full Usage: returnP x

Parameters:
    x : 'a

Returns: PeerChannelEncryptorComputation<'a>
x : 'a
Returns: PeerChannelEncryptorComputation<'a>

runP pcec initialState

Full Usage: runP pcec initialState

Parameters:
Returns: Result<('a * PeerChannelEncryptor), PeerError>
pcec : PeerChannelEncryptorComputation<'a>
initialState : PeerChannelEncryptor
Returns: Result<('a * PeerChannelEncryptor), PeerError>