Uses of Class
convex.core.data.Blob
Packages that use Blob
Package
Description
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
-
Uses of Blob in convex.core.crypto
Methods in convex.core.crypto that return BlobModifier and TypeMethodDescriptionabstract Blob
AKeyPair.getEncodedPrivateKey()
Gets the Private key encoded as a BlobEd25519KeyPair.getEncodedPrivateKey()
Ed25519KeyPair.getSeed()
Ed25519Signature.getSignatureBlob()
Methods in convex.core.crypto with parameters of type BlobModifier and TypeMethodDescriptionstatic AKeyPair
AKeyPair.create(AccountKey publicKey, Blob encodedPrivateKey)
Create a key pair with the given Address and encoded private keystatic Ed25519KeyPair
Ed25519KeyPair.create(AccountKey accountKey, Blob encodedPrivateKey)
Create a key pair given a public AccountKey and a encoded Blobstatic Ed25519KeyPair
static ASignature
Construct a Signature from a Blob Uses Ed25519 -
Uses of Blob in convex.core.data
Fields in convex.core.data declared as BlobModifier and TypeFieldDescriptionstatic Blob
Blob.EMPTY
protected Blob
AObject.encoding
We cache the Blob for the binary encoding of this Cellstatic Blob
Blob.NULL_ENCODING
Methods in convex.core.data that return BlobModifier and TypeMethodDescriptionstatic Blob
Blob.create(byte[] data)
Creates a new data object using a copy of the specified byte array.static Blob
Blob.create(byte[] data, int offset, int length)
Creates a new data object using a copy of the specified byte rangeACell.createEncoding()
protected abstract Blob
AObject.createEncoding()
Creates a Blob object representing this object.protected Blob
Ref.createEncoding()
static Blob
Blob.createRandom(Random random, long length)
Creates a Blob of random bytes of the given lengthABlob.empty()
static Blob
Format.encodedBlob(ACell o)
Gets the encoded Blob for an object in canonical message formatstatic Blob
Blob.fromByteBuffer(ByteBuffer bb)
Constructs a Blob object from all remaining bytes in a ByteBufferstatic Blob
Constructs a Blob object from a hex stringabstract Blob
ABlob.getChunk(long i)
Gets a chunk of this Blob, as a canonical Blob up to the maximum chunk sizeAccountKey.getChunk(long i)
ALongBlob.getChunk(long i)
ANumericBlob.getChunk(long i)
Blob.getChunk(long i)
BlobTree.getChunk(long chunkIndex)
Hash.getChunk(long i)
ACell.getEncoding()
Gets the encoded byte representation of this cell.AObject.getEncoding()
Gets the encoded byte representation of this cell.AArrayBlob.slice(long start)
AArrayBlob.slice(long start, long length)
Address.slice(long start, long length)
Blob.slice(long start, long length)
AArrayBlob.toBlob()
abstract Blob
ABlob.toBlob()
Converts this object to a Blob instanceAddress.toBlob()
abstract Blob
ALongBlob.toBlob()
Blob.toBlob()
BlobTree.toBlob()
LongBlob.toBlob()
AccountKey.toCanonical()
Hash.toCanonical()
LongBlob.toCanonical()
static Blob
Blob.wrap(byte[] data)
Wraps the specified bytes as a Data object Warning: underlying bytes are used directly.static Blob
Blob.wrap(byte[] data, int offset, int length)
Wraps the specified bytes as a Data object Warning: underlying bytes are used directly.Methods in convex.core.data with parameters of type BlobModifier and TypeMethodDescriptionvoid
AObject.attachEncoding(Blob data)
Attach the given encoding Blob to this object, if no encoding is currently cached Warning: Blob must be the correct canonical representation of this Cell, otherwise bad things may happen (incorrect hashcode, etc.)boolean
static AArrayBlob
Fast read of a Blob from its representation insider another Blob object, Main benefit is to avoid reconstructing via ByteBuffer allocation, enabling retention of source Blob object as encoded data.static BlobTree
static <T extends ACell>
TRead from a Blob with the specified tagstatic <T extends ACell>
TDecodes a single Value from a Blob.static <T extends ABlob>
TBlobs.readFromBlob(Blob source)
-
Uses of Blob in convex.core.lang
Methods in convex.core.lang that return Blob