Class: SecretToProof

message.SecretToProof()

Once a secret is known, if we want to keep the payment channel alive longer convert any openLocks into transferredAmounts. This message facilitates that and allows state channels to have indefinite lifetime. Without this message type, channels would require on-chain withdrawal at the min(openLock.expiration) time. This message effectively sets proof.transferredAmount += lock.amount and removes the lock from the merkle tree so it cannot be double spent

Constructor

new SecretToProof()

Properties:
Name Type Description
msgID BN
to Buffer Ethereum Address
secret Buffer the lock secret whos amount will be added to the transferredAmount of this messages proof
Source:

Extends

  • ProofMessage