sign method

MorpheusSignedOperation sign(
  1. MorpheusPrivate morpheusPrivate,
  2. KeyId keyId
)

Implementation

MorpheusSignedOperation sign(MorpheusPrivate morpheusPrivate, KeyId keyId) {
  final publicKey = morpheusPrivate.public.keyById(keyId);
  final privateKey = morpheusPrivate.keyByPk(publicKey).privateKey();
  return signWithKey(privateKey);
}