Skip to content

Add ability to include signatures with ContractTxData#462

Merged
quantumagi merged 4 commits intostratisproject:masterfrom
quantumagi:extcontracttxdata
Mar 16, 2021
Merged

Add ability to include signatures with ContractTxData#462
quantumagi merged 4 commits intostratisproject:masterfrom
quantumagi:extcontracttxdata

Conversation

@quantumagi
Copy link
Contributor

@quantumagi quantumagi commented Mar 15, 2021

This change makes it possible to include signatures into the transaction that creates a SC. This will allow us to write a rule to confirm that system contracts have been signed by the required signatories before being adopted by the nodes.

See https://app.clickup.com/t/34wnfe.

This is a backwards compatible change required by system contracts.

@quantumagi quantumagi requested a review from fassadlr March 15, 2021 08:38

protected void AddSignatures(List<byte[]> rlpBytes, string[] signatures)
{
if (signatures != null && signatures.Any())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps Guard null if the signatures is null or empty? Then remove the null and Any checks?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@quantumagi quantumagi merged commit 9ec385e into stratisproject:master Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants