salsaBoxBeforenm static method

BuBytes salsaBoxBeforenm({
  1. required List<int> peerPublicKey,
  2. required List<int> secretKey,
})

NaCl crypto_box_beforenm quick call, routed through the active backend (Dart today, native automatically once the connector gains box support). Returns the 32-byte transport key.

Implementation

static BuBytes salsaBoxBeforenm({
  required List<int> peerPublicKey,
  required List<int> secretKey,
}) {
  return blockchainUtils.api.aed.salsaBoxBeforenm(
    peerPublicKey: peerPublicKey,
    secretKey: secretKey,
  );
}