Skip to content

Neo.SmartContract.Framework: add native Notary contract API#1300

Merged
shargon merged 4 commits intomasterfrom
add-notary-contract
Mar 22, 2025
Merged

Neo.SmartContract.Framework: add native Notary contract API#1300
shargon merged 4 commits intomasterfrom
add-notary-contract

Conversation

@AnnaShaleva
Copy link
Member

Ref. neo-project/neo#3178.

Ported from #556 with all necessary updates, all credits go to @shargon.

Ref. neo-project/neo#3178.

Ported from #556
with all necessary updates.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva AnnaShaleva requested a review from a team March 4, 2025 18:17
public static extern bool Withdraw(UInt160 from, UInt160 to);
public static extern BigInteger BalanceOf(UInt160 acc);
public static extern uint ExpirationOf(UInt160 acc);
public static extern bool Verify(byte[] sig);
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure this method should be called verify one could act as the notary contract and use this in tx signature.

Copy link
Member Author

@AnnaShaleva AnnaShaleva Mar 5, 2025

Choose a reason for hiding this comment

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

The name is proper, it's standardize by https://github.com/neo-project/proposals/blob/master/nep-30.mediawiki. This method is designed specifically for transaction's witness verification.

shargon
shargon previously approved these changes Mar 5, 2025
Copy link
Member

@shargon shargon left a comment

Choose a reason for hiding this comment

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

Wait for merge it, after it I will also update the testing engine

@shargon shargon added the blocked label Mar 5, 2025
public static extern bool LockDepositUntil(UInt160 addr, uint till);
public static extern bool Withdraw(UInt160 from, UInt160 to);
public static extern BigInteger BalanceOf(UInt160 acc);
public static extern uint ExpirationOf(UInt160 acc);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is acc?
account?
It's better to use a complete word.

Jim8y
Jim8y previously approved these changes Mar 21, 2025
Co-authored-by: Will <201105916+Wi1l-B0t@users.noreply.github.com>
@Jim8y Jim8y dismissed stale reviews from shargon and themself via e359ac5 March 21, 2025 16:40
@shargon shargon merged commit 2e676c9 into master Mar 22, 2025
4 checks passed
@shargon shargon deleted the add-notary-contract branch March 22, 2025 19:40
Jim8y pushed a commit that referenced this pull request Aug 3, 2025
* Neo.SmartContract.Framework: add native Notary contract API
Ref. neo-project/neo#3178.
Ported from #556
with all necessary updates.
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
* Update src/Neo.SmartContract.Framework/Native/Notary.cs
Co-authored-by: Will <201105916+Wi1l-B0t@users.noreply.github.com>
---------
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Co-authored-by: Jimmy <jimmy@r3e.network>
Co-authored-by: Will <201105916+Wi1l-B0t@users.noreply.github.com>
Co-authored-by: Shargon <shargon@gmail.com>
Jim8y added a commit that referenced this pull request Aug 18, 2025
* Neo.SmartContract.Framework: add native Notary contract API

Ref. neo-project/neo#3178.

Ported from #556
with all necessary updates.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>

* Update src/Neo.SmartContract.Framework/Native/Notary.cs

Co-authored-by: Will <201105916+Wi1l-B0t@users.noreply.github.com>

---------

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Co-authored-by: Jimmy <jimmy@r3e.network>
Co-authored-by: Will <201105916+Wi1l-B0t@users.noreply.github.com>
Co-authored-by: Shargon <shargon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants