Skip to content

Commit

Permalink
do verification on point of creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony committed Dec 9, 2024
1 parent 434ebdf commit 6c6fdae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Angor/Shared/ProtocolNew/FounderTransactionActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public SignatureInfo SignInvestorRecoveryTransactions(ProjectInfo projectInfo, s

_logger.LogInformation($"creating sig for project={projectInfo.ProjectIdentifier}; founder-recovery-pubkey={key.PubKey.ToHex()}; stage={stageIndex}; hash={hash}; signature-hex={sig}");

var result = key.PubKey.GetTaprootFullPubKey().VerifySignature(hash, TaprootSignature.Parse(sig).SchnorrSignature);

_logger.LogInformation($"verification = {result}");

info.Signatures.Add(new SignatureInfoItem { Signature = sig, StageIndex = stageIndex });
}

Expand Down

0 comments on commit 6c6fdae

Please sign in to comment.