-
Notifications
You must be signed in to change notification settings - Fork 98
feat: Secp256k1 #1445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: Secp256k1 #1445
Changes from 69 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
ea4187b
Implement identity import command
enzoh eb2ef69
Implement validation step
enzoh 427ca24
Add end-to-end test
enzoh 9389781
Resolve script check warning
enzoh a995978
Merge branch 'master' into enzoh/import
enzoh b27972d
Merge branch 'master' into enzoh/secp256k1
enzoh a0f2372
Load secp256k1 identity from file
enzoh 28254a7
Resolve linter warning
enzoh 1678a42
Resolve merge conflicts
enzoh f51d27f
Upgrade to secp256k1 compatible replica
enzoh 2e6da46
Merge branch 'master' into enzoh/secp256k1
enzoh 271229b
feat: add http request support to DFX
hansl 3bcbe0a
.
hansl 9603098
.
hansl b8f582a
TRRY
hansl 778be79
.d.f.sf.
hansl 58d770c
.
hansl 00cb5a2
.
hansl 0766823
.
hansl 62ea6da
.
hansl 5cf85b8
.
hansl 2caf3de
.
hansl 05f492c
.
hansl 250d7f2
.
hansl edccc38
.
hansl e089401
.
hansl 436e65b
.
hansl 1e49b36
.
hansl d33ac64
.
hansl 6bb539f
.
hansl 4e13256
.
hansl b2c8db2
.
hansl 3f857db
.
hansl be53ad8
.
hansl 4d7d342
.
hansl ff62ff2
.
hansl e57df51
.
hansl b4778b3
.
hansl 3a30334
pkgsstatic
hansl 30e947f
fix e2e tests
hansl f4130d2
fix e2e tests
hansl a509699
fix e2e tests
hansl a1f83e0
change uri in asset storage
hansl 4d09330
Bug fix
enzoh 69f6b45
Resolve merge conflicts
enzoh aa8f574
Disable shellcheck warning
enzoh fc2f832
Explicitly match against stdout
enzoh 1d17e91
Resolve merge conflicts
enzoh a85bbae
Resolve merge conflicts
enzoh 8875d5e
Add e2e test for secp256k1 identities
enzoh 7c8d8ba
Upgrade to latest replica version
enzoh 95aa88c
Move into temporary directory during setup
enzoh f7ed7b6
Fix up secp256k1 signature encoding
enzoh 82ed0d3
Resolve shellcheck warning
enzoh 53ef591
Resolve shellcheck warning
enzoh 3fb72f9
Upgrade to latest agent
enzoh 79b27d0
Upgrade to latest agent
enzoh 621f563
fix missing subcommand
enzoh 8d4dfca
Upgrade to latest agent
enzoh e123131
Resolve merge conflicts
enzoh 878f0c6
Add --no-wallet flag
enzoh e025d28
Update CHANGELOG file
enzoh d6e3c1f
update to replica and ic-starter with rocksdb as default consensus db
3775c2f
Update sources.json
p-shahi a335ac7
Comment out redundant deploy command
enzoh 8b524a7
Use reinstall flag
enzoh ff4df4c
e2e large asset test: create large asset with rest of project assets,…
631ae7c
no wallet, and increase asset canister memory allocation from 10mb to…
d2445d1
Resolve merge conflicts
enzoh 6ae2e5e
Use latest replica from master
enzoh b537e6e
Resolve merge conflicts
enzoh b74fe31
Add clarification to release notes
enzoh 649a67e
Fix typo
enzoh 1f23e6d
Merge branch 'master' into enzoh/secp256k1
enzoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,5 @@ | ||
| actor WhoAmI { | ||
| public shared ({caller}) func whoami() : async Principal { | ||
| return caller; | ||
| }; | ||
| }; |
This file contains hidden or 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,7 @@ | ||
| { | ||
| "canisters": { | ||
| "whoami": { | ||
| "main": "Main.mo" | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 @@ | ||
| # nothing to do |
This file contains hidden or 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 hidden or 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,29 @@ | ||
| #!/usr/bin/env bats | ||
|
|
||
| load ../utils/_ | ||
|
|
||
| setup() { | ||
| # We want to work from a different temporary directory for every test. | ||
| x=$(mktemp -d -t dfx-identity-home-XXXXXXXX) | ||
| export TEMPORARY_HOME="$x" | ||
| export HOME="$TEMPORARY_HOME" | ||
| cd "$HOME" || exit | ||
| } | ||
|
|
||
| teardown() { | ||
| dfx_stop | ||
| rm -rf "$TEMPORARY_HOME" | ||
| } | ||
|
|
||
| @test "can call a canister using a secp256k1 identity" { | ||
| openssl ecparam -name secp256k1 -genkey -out identity.pem | ||
| assert_command dfx identity import secp256k1 identity.pem | ||
| dfx identity use secp256k1 | ||
| install_asset whoami | ||
| dfx_start | ||
| dfx canister create whoami | ||
| dfx build | ||
| dfx canister install whoami | ||
| assert_command dfx canister --no-wallet call whoami whoami | ||
| assert_match "$(dfx identity get-principal)" | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.