Skip to content

The production environment cannot decode #65

@0xbdm0101

Description

@0xbdm0101

`const [keystore] = useState(
'{"crypto": {"kdf": {"function": "scrypt", "params": {"dklen": 32, "n": 262144, "r": 8, "p": 1, "salt": "215c5b345b5200e62e208f8be1b484d41225bec0c9cb5d5c406a05a8121f8057"}, "message": ""}, "checksum": {"function": "sha256", "params": {}, "message": "5b5a7f4199e7169be7ddf663df353fedba4b1a471403de81b949e04350600250"}, "cipher": {"function": "aes-128-ctr", "params": {"iv": "091bce8b165b5f64ffc3fe09c63052e1"}, "message": "a163771b79f5478723312b49a1d3c539035360d5ef29a00c11724874100a2d0b"}}, "description": "", "pubkey": "a228deff168bff632cfdb72bec013c7e9797c1f594528366a9e1a3a95c652a04ba388e23be91d0e60116eb108523173f", "path": "m/12381/3600/1/0/0", "uuid": "a3dc32cc-7538-40e6-ae49-6910ab549c05", "version": 4}'
);

const [password] = useState("12345678");

async function testKeyStore1() {
const k = JSON.parse(keystore);
const decryptedPrivateKey: Uint8Array = await decrypt(k, password);
console.log("sk1: ", hexlify(decryptedPrivateKey));
}
`
"vite": "^5.4.6",

Normal development environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions