Skip to content

Commit

Permalink
Merge pull request #365 from helium/andymck/bump-beacon-eaf11322
Browse files Browse the repository at this point in the history
bump beacon/gateway rs
  • Loading branch information
andymck authored Feb 15, 2023
2 parents c1a6a29 + 453bf0a commit bbe5773
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mobile_rewards/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ pub fn construct_txn(
fn hash_txn_b64_url(txn: &BlockchainTxnSubnetworkRewardsV1) -> String {
let mut txn = txn.clone();
txn.reward_server_signature = vec![];
let digest = Sha256::digest(txn.encode_to_vec()).to_vec();
let digest = Sha256::digest(&txn.encode_to_vec()).to_vec();
base64::engine::general_purpose::URL_SAFE_NO_PAD.encode(digest)
}

Expand Down
2 changes: 1 addition & 1 deletion poc_iot_injector/src/receipt_txn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ fn construct_poc_receipt(beacon_report: IotValidBeaconReport) -> (BlockchainPocR
fn hash_txn(txn: &BlockchainTxnPocReceiptsV2) -> (Vec<u8>, String) {
let mut txn = txn.clone();
txn.signature = vec![];
let digest = Sha256::digest(txn.encode_to_vec()).to_vec();
let digest = Sha256::digest(&txn.encode_to_vec()).to_vec();
(
digest.clone(),
base64::engine::general_purpose::URL_SAFE_NO_PAD.encode(&digest),
Expand Down

0 comments on commit bbe5773

Please sign in to comment.