-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
1,627 additions
and
5 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,4 @@ | ||
registry/ | ||
.package-cache | ||
.package-cache-mutate | ||
|
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,12 @@ | ||
[build] | ||
|
||
[target.thumbv6m-none-eabi] | ||
rustflags = [ | ||
"--emit", "asm", | ||
"-C", "relocation-model=ropi", | ||
"-C", "link-arg=-nostartfiles", | ||
"-C", "link-arg=-Tlink.ld", | ||
] | ||
[unstable] | ||
build-std=["core"] | ||
build-std-features=["panic_immediate_abort"] |
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 @@ | ||
target/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[package] | ||
authors = ["Zondax AG <[email protected]>"] | ||
name = "rslib" | ||
version = "0.0.1" | ||
edition = "2021" | ||
readme = "README.md" | ||
resolver = "2" | ||
|
||
[lib] | ||
name = "rslib" | ||
crate-type = ["staticlib"] | ||
|
||
[dependencies] | ||
jubjub = { version = "0.10.0", default-features = false } | ||
aes = { version = "0.7", default-features = false } | ||
binary-ff1 = { version = "0.2", default-features = false } | ||
|
||
[target.thumbv6m-none-eabi.dev-dependencies] | ||
panic-halt = "0.2.0" | ||
|
||
[profile.release] | ||
lto = false | ||
codegen-units = 1 | ||
debug = false | ||
opt-level = "z" | ||
|
||
[profile.dev] | ||
lto = "fat" | ||
codegen-units = 1 | ||
debug=true | ||
opt-level = "s" | ||
panic = "abort" | ||
|
||
[features] | ||
default = [] | ||
# use when compiling this crate as a lib for the cpp_tests suite | ||
cpp_tests = [] |
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,11 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
#include "parser_common.h" | ||
#include "keys_def.h" | ||
|
||
/* Interface functions with jubjub crate */ | ||
parser_error_t from_bytes_wide(const uint8_t input[64], uint8_t output[32]); | ||
parser_error_t scalar_multiplication(const uint8_t input[32], constant_key_t key, uint8_t output[32]); | ||
parser_error_t get_default_diversifier_list_start_index(const uint8_t dk[32], uint8_t di[11], uint8_t d_l[44]); | ||
parser_error_t get_pkd(const uint8_t ivk_ptr[32], uint8_t div_hash[32], uint8_t pk_d[32]); |
Oops, something went wrong.