forked from anoma/namada
-
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.
Merge pull request anoma#13 from heliaxdev/feat/12/mnemonic_and_maste…
…r_key_creation Feat/12/mnemonic and master key creation
- Loading branch information
Showing
71 changed files
with
9,299 additions
and
51 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const path = require("path"); | ||
|
||
module.exports = { | ||
webpack: { | ||
configure: (webpackConfig) => { | ||
// ts-loader for using non-transpiled ts content from yarn workspaces | ||
webpackConfig.module.rules.push({ | ||
test: /\.ts?$/, | ||
loader: "ts-loader", | ||
exclude: /node_modules/, | ||
options: { | ||
transpileOnly: true, | ||
configFile: "tsconfig.json", | ||
}, | ||
}); | ||
|
||
return webpackConfig; | ||
}, | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Anoma Extension | ||
|
||
This packs all the key management used in Anoma wallet. The fain features being the generation and re-generating of key pairs from seed phrase. | ||
|
||
## How to run | ||
```bash | ||
# at the root | ||
|
||
# rebuild and copy libs | ||
./scripts/build-rust.sh | ||
|
||
# run the test suite | ||
yarn jest | ||
``` | ||
|
||
## Types | ||
|
||
### `Mnemonic` | ||
### `KeyPair` | ||
* This is the keypair that is being used to sign transactions. | ||
* It can be encrypted or unencrypted. | ||
* It has the format that is suitable for file storage and is same as in the CLI. Example: | ||
```toml | ||
[keys] | ||
memas-key-2 = "unencrypted:20000000f9e3191d096de7449f03fbfd03031f6b7ec23f1a048a53cbdb545c115a3b293e2000000095b922ce1f3b69b60dd8949867be8694703509ef8a20ec83e436aa08a22edda4" | ||
memas-key-1 = "encrypted:ec5d6c48eb2e27423533f56d4fcea010d6711055fda0f3bd146b555e88ef4bf5e3ec447bab58537e55c2ff87aa9e5e08cf41db3f472d55fa766fa48bf122004e6ab4421142329055989bdf51bd2307a2fe24f0babea4bceb90eee91347188e3b6f0f23d1e3fff690f10ebd1c593d2167c773baf2967b60fde51c71cae64c6b3c" | ||
``` | ||
|
||
### `KeyPairType` | ||
### `Mnemonic` |
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,3 @@ | ||
export { Mnemonic, MnemonicLength } from "./src/Mnemonic"; | ||
export { KeyPair, KeyPairType } from "./src/KeyPair"; | ||
// export { WalletFileManager } from "./src/WalletFile"; |
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,5 @@ | ||
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ | ||
export default { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
}; |
13 changes: 13 additions & 0 deletions
13
anoma-wallet/packages/key-management/lib/anoma-key-management/.vscode/settings.json
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,13 @@ | ||
{ | ||
"workbench.colorCustomizations": { | ||
"[monokai]": { | ||
"symbolIcon.namespaceForeground": "#ff0000" | ||
}, | ||
"activityBar.background": "#007d3b", | ||
"activityBar.activeForeground": "1e5388", | ||
"titleBar.activeBackground": "#007d3b", | ||
"titleBar.activeForeground": "#fff", | ||
"activityBar.foreground": "#fff", | ||
}, | ||
"window.title": "anoma-wallet" | ||
} |
Oops, something went wrong.