Returns an account keypair from a secret key, needed when you have a secret key but not the public key related.
import { getKeypairFromSecretKey, getAddressFromPublicKey } from '@lndgalante/solutils';
const secretKey = [
134, 98, 243, 255, 26, 77, 24, 179, 246, 4, 71, 250, 137, 117, 154, 223, 245, 56, 40, 129, 83, 9, 251, 155, 79, 73,
35, 81, 189, 161, 49, 212, 155, 197, 139, 80, 211, 197, 3, 178, 85, 182, 49, 34, 74, 63, 90, 80, 117, 115, 67, 185,
246, 42, 73, 93, 91, 12, 189, 113, 33, 171, 182, 60,
];
const { keypair } = getKeypairFromSecretKey(secretKey);
const { address } = getAddressFromPublicKey(keypair.publicKey);
console.log(address); // BV4uLAAaPtQSZRYrvwvFzn2fJJkinLQJb73mnhgPYfDM