Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
James Zheng committed Aug 23, 2022
1 parent 4a8168a commit cd7b0fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions go/common/crypto/mrae/deoxysii/asymmetric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
)

func Test_DeriveSymmetricKey(t *testing.T) {
// use the same test Hex string for rust at: oasis-core/runtime/src/common/crypto/mrae/deoxysii.rs
p, _ := hex.DecodeString("c07b151fbc1e7a11dff926111188f8d872f62eba0396da97c0a24adb75161750")
var privateKey [32]byte
copy(privateKey[:], p)
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ features = ["full"]

[dev-dependencies]
# For storage interoperability tests only.
hex = "0.4"
jsonrpc = { version = "0.12.1", features = ["simple_uds"] }
tempfile = "3.3.0"
hex = "0.4"

[[bin]]
name = "fuzz-mkvs-proof"
Expand Down
1 change: 1 addition & 0 deletions runtime/src/common/crypto/mrae/deoxysii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ mod tests {

#[test]
fn test_drive_symmetric_key() {
// use the same test Hex string for golang at: oasis-core/go/common/crypto/mrae/deoxysii/asymmetric_test.go
let private_key_buffer = <[u8; 32]>::from_hex(
"c07b151fbc1e7a11dff926111188f8d872f62eba0396da97c0a24adb75161750",
)
Expand Down

0 comments on commit cd7b0fc

Please sign in to comment.