Skip to content

Commit

Permalink
Adjusted to zk-citadel 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Nov 8, 2023
1 parent 80a05f4 commit 923f07c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions license-provider/src/license_issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct LicenseIssuer {
gas_price: u64,
}

const USER_ATTRIBUTES: u64 = 1 << 17;
const ATTRIBUTE_DATA: u64 = 1 << 17;

impl LicenseIssuer {
pub fn new(
Expand All @@ -51,7 +51,7 @@ impl LicenseIssuer {
request: &Request,
ssk_lp: &SecretSpendKey,
) -> Result<(BlsScalar, Vec<u8>), Error> {
let attr = JubJubScalar::from(USER_ATTRIBUTES);
let attr = JubJubScalar::from(ATTRIBUTE_DATA);
let license = License::new(&attr, ssk_lp, request, rng);
let license_blob = rkyv::to_bytes::<_, MAX_LICENSE_SIZE>(&license)
.expect("License should serialize correctly")
Expand Down
2 changes: 1 addition & 1 deletion moat-cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ impl Command {
let summary = UseLicenseSummary {
license_blob: RunResult::to_blob(&license),
tx_id: hex::encode(tx_id.to_bytes()),
user_attr: hex::encode(session_cookie.attr.to_bytes()),
user_attr: hex::encode(session_cookie.attr_data.to_bytes()),
session_id: hex::encode(
session_cookie.session_id.to_bytes(),
),
Expand Down

0 comments on commit 923f07c

Please sign in to comment.