VerificationMethod constructor

VerificationMethod({
  1. required String id,
  2. required String controller,
  3. required String type,
  4. Map<String, dynamic>? publicKeyJwk,
  5. String? publicKeyMultibase,
})

Implementation

VerificationMethod(
    {required this.id,
    required this.controller,
    required this.type,
    this.publicKeyJwk,
    this.publicKeyMultibase}) {
  if (publicKeyJwk == null && publicKeyMultibase == null) {
    throw Exception(
        'Verification Method must have an entry for a public key');
  }
}