deriveConversationKey static method

Uint8List deriveConversationKey(
  1. Uint8List sharedSecret
)

Implementation

static Uint8List deriveConversationKey(Uint8List sharedSecret) {
  final salt = utf8.encode('nip44-v2');

  final conversationKey = hkdfExtract(
    ikm: sharedSecret,
    salt: Uint8List.fromList(salt),
  );

  return conversationKey;
}