| Modifier and Type | Field and Description |
|---|---|
static int |
length |
| Constructor and Description |
|---|
SubId(byte[] id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte[] |
getId()
Return binary form of block getId used by skipchain
|
int |
hashCode() |
static SubId |
one()
Creates a sub ID with the first byte set to 1.
|
static SubId |
random() |
String |
toString() |
static SubId |
zero()
Creates a sub ID with all bytes set to 0.
|
public static final int length
public SubId(byte[] id)
throws CothorityCryptoException
CothorityCryptoExceptionpublic byte[] getId()
HashIdpublic static SubId zero() throws CothorityCryptoException
CothorityCryptoExceptionpublic static SubId one() throws CothorityCryptoException
CothorityCryptoExceptionpublic static SubId random() throws CothorityCryptoException
CothorityCryptoExceptionCopyright © 2018. All rights reserved.