Table of Contents

Class ModuleV1

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

Version 1 module source.

public sealed record ModuleV1 : VersionedModuleSource, IEquatable<VersionedModuleSource>, IEquatable<ModuleV1>
Inheritance
ModuleV1
Implements
Inherited Members

Constructors

ModuleV1(byte[])

Version 1 module source.

public ModuleV1(byte[] Source)

Parameters

Source byte[]

Source code of module

Methods

From(byte[])

Creates a WASM-module from byte array. Note: Does not copy the given byte array, so it assumes that the underlying byte array is not mutated

public static ModuleV1 From(byte[] source)

Parameters

source byte[]

WASM-module as a byte array.

Returns

ModuleV1

Exceptions

ArgumentException

The length of the supplied module exceeds "MaxLength".

FromHex(string)

Creates an instance from a hex encoded string.

public static ModuleV1 FromHex(string hexString)

Parameters

hexString string

The WASM-module represented as a hex encoded string representing at most "MaxLength" bytes.

Returns

ModuleV1

Exceptions

ArgumentException

The supplied string is not a hex encoded WASM-module representing at most "MaxLength" bytes.