toCompressedP256
Extracts the compressed P-256 public key from a did:key string.
Return
33-byte compressed P-256 public key
Parameters
did
The DID string (must start with did:key:z)
Throws
if DID format is invalid
Extracts the compressed P-256 public key from a did:key string.
33-byte compressed P-256 public key
The DID string (must start with did:key:z)
if DID format is invalid