cloneForSigning method

SimpleSignableKey cloneForSigning()

Implementation

SimpleSignableKey cloneForSigning() {
  final newKey = SimpleSignableKey.fromJson(toJson().copy());
  newKey.identifier = identifier;
  (newKey.signatures ??= {}).clear();
  return newKey;
}