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