Can we import account to Concordium Client 5.0.1 from 24 word seed

How to get signing key for buildBasicAccountSigner NodeJs from new 24 seed account.

what is private key in Web wallet. how to use it to get public_key if we are using concordium_std::HasCryptoPrimitives in contract.

pub trait HasCryptoPrimitives {
    fn verify_ed25519_signature(
        &self,
        public_key: PublicKeyEd25519,
        signature: SignatureEd25519,
        message: &[u8]
    ) -> bool;
    fn verify_ecdsa_secp256k1_signature(
        &self,
        public_key: PublicKeyEcdsaSecp256k1,
        signature: SignatureEcdsaSecp256k1,
        message_hash: [u8; 32]
    ) -> bool;
    fn hash_sha2_256(&self, data: &[u8]) -> HashSha2256;
    fn hash_sha3_256(&self, data: &[u8]) -> HashSha3256;
    fn hash_keccak_256(&self, data: &[u8]) -> HashKeccak256;
}

The browser extension wallet supports specific key export. That will export a file of the form

{
	"type": "concordium-browser-wallet-account",
	"v": 0,
	"environment": "testnet",
	"value": {
		"accountKeys": {
			"keys": {
				"0": {
					"keys": {
						"0": {
							"signKey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
							"verifyKey": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
						}
					},
					"threshold": 1
				}
			},
			"threshold": 1
		},
		"credentials": {
			"0": "85faaa922f3a271fa738f6efef364832d3f26687e15f88b505a6f59bf24aaa31497e00837fa5f3d0bbc5f981f859e87a"
		},
		"address": "4SaCp3jwzP3epnV6pp4cu5Eru1nw2tWVADjjU1rsRJMbTkoHg1"
	}
}

Where signKey is the private key, and verifyKey is the public key.

1 Like