Skip to content

Commit f100b30

Browse files
Update rust/threshold-schnorr/README.md
1 parent ce16e10 commit f100b30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/threshold-schnorr/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ There are four options that are planed to be supported:
108108
* `test_key_1`: a master **test** key ID that is used in mainnet.
109109
* `key_1`: a master **production** key ID that is used in mainnet.
110110

111+
For example, the default code in `src/schnorr_example_rust/src/lib.rs` derives
112+
the key ID as follows and can be deployed locally:
113+
`SchnorrKeyIds::TestKeyLocalDevelopment.to_key_id(algorithm)`
114+
111115
IMPORTANT: To deploy to IC mainnet, one needs to replace `"dfx_test_key"` with
112116
either "test_key_1"` or `"key_1"` depending on the desired intent. Both uses of
113117
key ID in `src/schnorr_example_rust/src/main.mo` must be consistent.

0 commit comments

Comments
 (0)