Interface IKeyDerivationService
- Namespace
- NLightning.Domain.Protocol.Interfaces
- Assembly
- NLightning.Domain.dll
public interface IKeyDerivationService
Methods
DerivePrivateKey(PrivKey, CompactPubKey)
PrivKey DerivePrivateKey(PrivKey basepointSecretPriv, CompactPubKey compactPerCommitmentPoint)
Parameters
basepointSecretPriv PrivKey
compactPerCommitmentPoint CompactPubKey
Returns
- PrivKey
DerivePublicKey(CompactPubKey, CompactPubKey)
CompactPubKey DerivePublicKey(CompactPubKey compactBasepoint, CompactPubKey compactPerCommitmentPoint)
Parameters
compactBasepoint CompactPubKey
compactPerCommitmentPoint CompactPubKey
Returns
- CompactPubKey
DeriveRevocationPrivKey(PrivKey, PrivKey)
PrivKey DeriveRevocationPrivKey(PrivKey revocationBasepointSecretPriv, PrivKey perCommitmentSecretPriv)
Parameters
revocationBasepointSecretPriv PrivKey
perCommitmentSecretPriv PrivKey
Returns
- PrivKey
DeriveRevocationPubKey(CompactPubKey, CompactPubKey)
CompactPubKey DeriveRevocationPubKey(CompactPubKey compactRevocationBasepoint, CompactPubKey compactPerCommitmentPoint)
Parameters
compactRevocationBasepoint CompactPubKey
compactPerCommitmentPoint CompactPubKey
Returns
- CompactPubKey
GeneratePerCommitmentSecret(Secret, ulong)
Secret GeneratePerCommitmentSecret(Secret seed, ulong index)
Parameters
seed Secret
index ulong
Returns
- Secret