-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve authentication template validation, improve types
- Loading branch information
Showing
24 changed files
with
1,946 additions
and
220 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
255 changes: 222 additions & 33 deletions
255
src/lib/template/bitauth-authentication-template.schema.json
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,30 @@ | ||
export enum CompilerDefaults { | ||
/** | ||
* If unset, `variable.current_block_height` is set to `2` in each scenario. | ||
* This is the height of the second mined block after the genesis block: | ||
* `000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd`. | ||
* | ||
* This default value was chosen to be low enough to simplify the debugging of | ||
* block height offsets while remaining differentiated from `0` and `1` which | ||
* are used both as boolean return values and for control flow. | ||
*/ | ||
defaultScenarioCurrentBlockHeight = 2, | ||
/** | ||
* If unset, `variable.current_block_time` is set to `1231469665` in each | ||
* scenario. This is the Median Time-Past block time (BIP113) of block `2` | ||
* (the block used in `defaultScenarioCurrentBlockHeight`). | ||
*/ | ||
defaultScenarioCurrentBlockTime = 1231469665, | ||
/** | ||
* If unset, each `HdKey` uses this `addressOffset`. | ||
*/ | ||
hdKeyAddressOffset = 0, | ||
hdKeyPrivateDerivationPath = 'm/i', | ||
/** | ||
* If unset, each `HdKey` uses this `hdPublicKeyDerivationPath`. | ||
*/ | ||
hdKeyHdPublicKeyDerivationPath = 'm', | ||
/** | ||
* If unset, each `HdKey` uses this `privateDerivationPath`. | ||
*/ | ||
hdKeyPrivateDerivationPath = 'm/i', | ||
} |
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
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.