Cardano Serialization Lib has this class:

export class KESSignature {
  free(): void;
* @returns {Uint8Array}
  to_bytes(): Uint8Array;
* @param {Uint8Array} bytes
* @returns {KESSignature}
  static from_bytes(bytes: Uint8Array): KESSignature;

What Uint8Array should I provide to the from_bytes method to obtain a valid KESSignature?

1 Answer 1


I suggest using cardanocli-js to generate the KES signature file.

You can do it like this:

const CardanocliJs = require("cardanocli-js");

const shelleyGenesisPath = "/path/to/your/testnet-shelley-genesis.json";
const options = {
  network: "testnet-magic 1097911063"

const cardanocliJs = new CardanocliJs(options);

const nodeKeyGenKES = cardanocliJs.nodeKeyGenKES(stakePoolName);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.