Skip to content

Commit

Permalink
feat: make test function as public (#27)
Browse files Browse the repository at this point in the history
* feat: make test function as public

* feat: make test function as public
  • Loading branch information
ALPAC-4 authored Apr 8, 2024
1 parent 5053e6f commit 3d5bbb6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions precompile/modules/initia_stdlib/sources/crypto/ed25519.move
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ module initia_std::ed25519 {
): bool;

#[test_only]
native fun generate_keys(): (vector<u8>, vector<u8>);
native public fun generate_keys(): (vector<u8>, vector<u8>);

#[test_only]
native fun sign(message: vector<u8>, secrete_key: vector<u8>): vector<u8>;
native public fun sign(message: vector<u8>, secrete_key: vector<u8>): vector<u8>;

//
// Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ module initia_std::secp256k1 {

#[test_only]
/// Generates an secp256k1 ECDSA key pair.
native fun generate_keys(): (vector<u8>, vector<u8>);
native public fun generate_keys(): (vector<u8>, vector<u8>);

#[test_only]
/// Generates an secp256k1 ECDSA signature for a given byte array using a given signing key.
native fun sign(message: vector<u8>, secrete_key: vector<u8>): (u8, vector<u8>);
native public fun sign(message: vector<u8>, secrete_key: vector<u8>): (u8, vector<u8>);

//
// Tests
Expand Down
4 changes: 2 additions & 2 deletions precompile/modules/minitia_stdlib/sources/crypto/ed25519.move
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ module minitia_std::ed25519 {
): bool;

#[test_only]
native fun generate_keys(): (vector<u8>, vector<u8>);
native public fun generate_keys(): (vector<u8>, vector<u8>);

#[test_only]
native fun sign(message: vector<u8>, secrete_key: vector<u8>): vector<u8>;
native public fun sign(message: vector<u8>, secrete_key: vector<u8>): vector<u8>;

//
// Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ module minitia_std::secp256k1 {

#[test_only]
/// Generates an secp256k1 ECDSA key pair.
native fun generate_keys(): (vector<u8>, vector<u8>);
native public fun generate_keys(): (vector<u8>, vector<u8>);

#[test_only]
/// Generates an secp256k1 ECDSA signature for a given byte array using a given signing key.
native fun sign(message: vector<u8>, secrete_key: vector<u8>): (u8, vector<u8>);
native public fun sign(message: vector<u8>, secrete_key: vector<u8>): (u8, vector<u8>);

//
// Tests
Expand Down

0 comments on commit 3d5bbb6

Please sign in to comment.