public class CredentialRegistrationId extends Object
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static CredentialRegistrationId |
from(com.concordium.grpc.v2.CredentialRegistrationId regId) |
static CredentialRegistrationId |
from(String encoded)
Create a
CredentialRegistrationId from the hex encoded registration id. |
static CredentialRegistrationId |
fromBytes(byte[] bytes)
Create a
CredentialRegistrationId from raw bytes |
String |
getEncoded()
Get the hex encoded credential registration id
|
byte[] |
getRegId() |
int |
hashCode() |
String |
toString() |
public static CredentialRegistrationId from(String encoded)
CredentialRegistrationId
from the hex encoded registration id.public static CredentialRegistrationId from(com.concordium.grpc.v2.CredentialRegistrationId regId)
public String getEncoded()
public static CredentialRegistrationId fromBytes(byte[] bytes)
CredentialRegistrationId
from raw bytes
Note. This is not the most optimal check as in fact the credential registration id is a group element in the G1 curve of the BLS pairing. Hence, not every series of bytes (with the correct size) is a valid credential registration id.
Maintainer note. A future implementation could make use of the above comment and provide stronger verification of the credential registration id.
bytes
- the credential registration id bytesCredentialRegistrationId
protected boolean canEqual(Object other)
public byte[] getRegId()
Copyright © 2025. All rights reserved.