Uses of Class
convex.core.data.Blob
Packages that use Blob
Package
Description
Crypto algorithms used within Convex, particularly for digital signatures and
cryptographic hashes
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
Core CVM implementation
-
Uses of Blob in convex.core.crypto
Methods in convex.core.crypto that return BlobModifier and TypeMethodDescriptionabstract BlobAKeyPair.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 AKeyPairAKeyPair.create(AccountKey publicKey, Blob encodedPrivateKey)Create a key pair with the given Address and encoded private keystatic Ed25519KeyPairEd25519KeyPair.create(AccountKey accountKey, Blob encodedPrivateKey)Create a key pair given a public AccountKey and a encoded Blobstatic Ed25519KeyPairstatic ASignatureConstruct a Signature from a Blob Uses Ed25519 -
Uses of Blob in convex.core.data
Fields in convex.core.data declared as BlobModifier and TypeFieldDescriptionstatic BlobBlob.EMPTYprotected BlobAObject.encodingWe cache the Blob for the binary encoding of this Cellstatic BlobBlob.NULL_ENCODINGMethods in convex.core.data that return BlobModifier and TypeMethodDescriptionstatic BlobBlob.create(byte[] data)Creates a new data object using a copy of the specified byte array.static BlobBlob.create(byte[] data, int offset, int length)Creates a new data object using a copy of the specified byte rangeACell.createEncoding()protected abstract BlobAObject.createEncoding()Creates a Blob object representing this object.protected BlobRef.createEncoding()static BlobBlob.createRandom(Random random, long length)Creates a Blob of random bytes of the given lengthABlob.empty()static BlobFormat.encodedBlob(ACell o)Gets the encoded Blob for an object in canonical message formatstatic BlobBlob.fromByteBuffer(ByteBuffer bb)Constructs a Blob object from all remaining bytes in a ByteBufferstatic BlobConstructs a Blob object from a hex stringabstract BlobABlob.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 BlobABlob.toBlob()Converts this object to a Blob instanceAddress.toBlob()abstract BlobALongBlob.toBlob()Blob.toBlob()BlobTree.toBlob()LongBlob.toBlob()AccountKey.toCanonical()Hash.toCanonical()LongBlob.toCanonical()static BlobBlob.wrap(byte[] data)Wraps the specified bytes as a Data object Warning: underlying bytes are used directly.static BlobBlob.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 TypeMethodDescriptionvoidAObject.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.)booleanstatic AArrayBlobFast 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 BlobTreestatic <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