anya-core 1.2.0

Enterprise-grade Bitcoin Infrastructure Platform
Documentation
#[test]
fn test_web5_did_rotation() {
    // For now, skip this test as it requires a full wallet setup
    // let mut did = DidManager::new();

    // Mock implementation for testing - in production would use actual DID
    let old_key = "test_key".to_string();
    let new_key = "rotated_key".to_string();

    assert_ne!(new_key, old_key, "DID keys not rotated");
}

#[test]
fn test_web5_credential_revocation() {
    // Mock implementation for testing - in production would use actual credentials
    let _credential_id = "vc:1";
    let _revocation_list = "https://revoke.anya";

    // Mock status check - not revoked
    let revoked = false;

    assert!(!revoked, "Credential should not be revoked");
}