Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions bedrock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ x509-cert = { version = "0.2.5", features = ["pem"] }
zeroize = "1.8"
hex-literal = "1.1.0" # Provides the `hex!` macro for compile-time hex decoding
http = "1.4.0"
siegel-uniffi = "=0.2.0"

# TODO: once `rand` can be bumped to 0.9, add the explicit feature flag `os_rng`. this explicitly determines no `thread_rng`;
# bumping this requires crypto_box to update rand: https://github.com/RustCrypto/nacl-compat/issues/176
Expand Down
1 change: 1 addition & 0 deletions bedrock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ pub mod siwe;
pub mod test_utils;

uniffi::setup_scaffolding!("bedrock");
siegel_uniffi::uniffi_reexport_scaffolding!();
6 changes: 4 additions & 2 deletions bedrock/src/siwe/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const TEST_KEY: &str =
const TEST_WALLET: &str = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";

fn test_smart_account() -> SafeSmartAccount {
SafeSmartAccount::new(TEST_KEY.into(), TEST_WALLET).unwrap()
SafeSmartAccount::from_private_key_hex(TEST_KEY.to_string(), TEST_WALLET).unwrap()
}

fn make_valid_message(datetime: &str) -> String {
Expand Down Expand Up @@ -470,7 +470,9 @@ fn parse_accepts_message_at_max_length() {
fn sign_produces_verifiable_signature() {
let signer = PrivateKeySigner::from_str(TEST_KEY).unwrap();
let eoa_address = signer.address();
let account = SafeSmartAccount::new(TEST_KEY.into(), TEST_WALLET).unwrap();
let account =
SafeSmartAccount::from_private_key_hex(TEST_KEY.to_string(), TEST_WALLET)
.unwrap();

let msg = SiweMessage {
scheme: Some(Scheme::HTTPS),
Expand Down
Loading
Loading