Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Rothenberger committed Jun 17, 2024
1 parent a55d75b commit bfed787
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions dummy-issuer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ use canister_sig_util::CanisterSigPublicKey;
use ic_cdk::api::{set_certified_data, time};
use ic_cdk_macros::{query, update};
use ic_certification::{labeled_hash, Hash};
use lazy_static::lazy_static;
use serde_bytes::ByteBuf;
use serde_json::Value;
use sha2::{Digest, Sha256};
use std::cell::RefCell;
use ic_verifiable_credentials::issuer_api::{
ArgumentValue, CredentialSpec, DerivationOriginData, DerivationOriginError,
DerivationOriginRequest, GetCredentialRequest, Icrc21ConsentInfo, Icrc21Error,
Expand All @@ -20,6 +15,11 @@ use ic_verifiable_credentials::{
build_credential_jwt, did_for_principal, vc_jwt_to_jws, vc_signing_input,
vc_signing_input_hash, CredentialParams,
};
use lazy_static::lazy_static;
use serde_bytes::ByteBuf;
use serde_json::Value;
use sha2::{Digest, Sha256};
use std::cell::RefCell;

const ISSUER_URL: &str = "https://dummy-issuer.vc";
const CREDENTIAL_URL_PREFIX: &str = "data:text/plain;charset=UTF-8,";
Expand Down
6 changes: 3 additions & 3 deletions dummy-issuer/tests/dummy_issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ use std::collections::HashMap;

use candid::{decode_one, encode_one, CandidType, Deserialize, Principal};
use ic_cdk::api::management_canister::main::CanisterId;
use pocket_ic::{PocketIc, WasmResult};
use serde::de::DeserializeOwned;
use serde_json::Value;
use ic_verifiable_credentials::issuer_api::{
ArgumentValue, CredentialSpec, DerivationOriginData, DerivationOriginError,
DerivationOriginRequest, GetCredentialRequest, Icrc21ConsentInfo, Icrc21ConsentPreferences,
Icrc21Error, Icrc21VcConsentMessageRequest, PrepareCredentialRequest, SignedIdAlias,
};
use pocket_ic::{PocketIc, WasmResult};
use serde::de::DeserializeOwned;
use serde_json::Value;

const DUMMY_ISSUER_WASM: &[u8] = include_bytes!("../dummy_issuer.wasm.gz");
const ID_ALIAS_JWT: &str = "eyJqd2siOnsia3R5Ijoib2N0IiwiYWxnIjoiSWNDcyIsImsiOiJNRHd3REFZS0t3WUJCQUdEdUVNQkFnTXNBQXFBQUFBQUFCQUFGZ0VCVko4aGgwR2xBTmFMdUtRVGNZWTlwa01WVFhPLTMzaEctY0tyaHVkaTZ3cyJ9LCJraWQiOiJkaWQ6aWNwOmNwbWNyLXllYWFhLWFhYWFhLXFhYWxhLWNhaSIsImFsZyI6IkljQ3MifQ.eyJleHAiOjE3MTc1MDAwOTcsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkuaWMwLmFwcC8iLCJuYmYiOjE3MTc0OTkxOTcsImp0aSI6ImRhdGE6dGV4dC9wbGFpbjtjaGFyc2V0PVVURi04LHRpbWVzdGFtcF9uczoxNzE3NDk5MTk3NjkxMjUzMDAwLGFsaWFzX2hhc2g6ZWJjOThmYTk2NDFlZGIwYTY3ZGEwYjBkZjExZDIyZjVjNDRjYTNlNWI2OWM5MTA0NTA4M2FkNzY5NmNmMjQ4NSIsInN1YiI6ImRpZDppY3A6MmRyN2ItZHkyN28tYXQzbDQtdGlra2otamdmNWYtYjRxb2gtbzNpcWQtcWdmN2ktYnhpeWUtenpmaWUtbGFlIiwidmMiOnsiQGNvbnRleHQiOiJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSIsInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiLCJJbnRlcm5ldElkZW50aXR5SWRBbGlhcyJdLCJjcmVkZW50aWFsU3ViamVjdCI6eyJJbnRlcm5ldElkZW50aXR5SWRBbGlhcyI6eyJoYXNJZEFsaWFzIjoieHA3bWYtaWR6eTYtaHMzM2cteGc2Z3ota25henktdG8yM3EtdHVnZTYtN2JoNmEtanp0bXctYjNwd3QtZWFl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