forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specified the following transaction scripts: - burn.move - publish_shared_ed25519_public_key.move - rotate_dual_attestation_info.move - rotate_shared_ed25519_public_key.move Specified the SharedEd25519PublicKey module Added the following governance spec to DualAttestation: - the resource `Credential` is not transferrable. - the invariant that only PareantVASP or DD can have `Credential` Added the spec function & test cases for the native functions in Signature Closes: aptos-labs#6093
- Loading branch information
1 parent
b7c8a0a
commit fd0c740
Showing
18 changed files
with
642 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
language/move-prover/tests/sources/functional/verify_signature.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// This file is created to verify the native function in the standard LCS module. | ||
|
||
module VerifySignature { | ||
use 0x1::Signature; | ||
|
||
public fun verify_ed25519_validate_pubkey(public_key: vector<u8>): bool { | ||
Signature::ed25519_validate_pubkey(public_key) | ||
} | ||
spec fun verify_ed25519_validate_pubkey { | ||
ensures result == Signature::ed25519_validate_pubkey(public_key); | ||
} | ||
|
||
public fun verify_ed25519_verify( | ||
signature: vector<u8>, | ||
public_key: vector<u8>, | ||
message: vector<u8> | ||
): bool { | ||
Signature::ed25519_verify(signature, public_key, message) | ||
} | ||
spec fun verify_ed25519_verify { | ||
ensures result == Signature::ed25519_verify(signature, public_key, message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.