Skip to content

Commit 0e89dea

Browse files
7.1.0
1 parent 6b180e0 commit 0e89dea

File tree

5 files changed

+75
-28
lines changed

5 files changed

+75
-28
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cardano-serialization-lib",
3-
"version": "7.0.0",
3+
"version": "7.1.0",
44
"description": "(De)serialization functions for the Cardano blockchain along with related utility functions",
55
"scripts": {
66
"rust:build-nodejs": "rimraf ./rust/pkg && cd rust; wasm-pack build --target=nodejs; wasm-pack pack; cd .. && npm run js:flowgen",

rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cardano-serialization-lib"
3-
version = "7.0.0"
3+
version = "7.1.0"
44
edition = "2018"
55
authors = ["EMURGO"]
66
license = "MIT"

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 71 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,30 @@ declare export function min_ada_required(
8989
minimum_utxo_val: BigNum
9090
): BigNum;
9191

92+
/**
93+
* @param {string} password
94+
* @param {string} salt
95+
* @param {string} nonce
96+
* @param {string} data
97+
* @returns {string}
98+
*/
99+
declare export function encrypt_with_password(
100+
password: string,
101+
salt: string,
102+
nonce: string,
103+
data: string
104+
): string;
105+
106+
/**
107+
* @param {string} password
108+
* @param {string} data
109+
* @returns {string}
110+
*/
111+
declare export function decrypt_with_password(
112+
password: string,
113+
data: string
114+
): string;
115+
92116
/**
93117
* @param {Uint8Array} bytes
94118
* @returns {TransactionMetadatum}
@@ -132,30 +156,6 @@ declare export function decode_metadatum_to_json_str(
132156
*/
133157
declare export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
134158

135-
/**
136-
* @param {string} password
137-
* @param {string} salt
138-
* @param {string} nonce
139-
* @param {string} data
140-
* @returns {string}
141-
*/
142-
declare export function encrypt_with_password(
143-
password: string,
144-
salt: string,
145-
nonce: string,
146-
data: string
147-
): string;
148-
149-
/**
150-
* @param {string} password
151-
* @param {string} data
152-
* @returns {string}
153-
*/
154-
declare export function decrypt_with_password(
155-
password: string,
156-
data: string
157-
): string;
158-
159159
/**
160160
*/
161161

@@ -4279,6 +4279,42 @@ declare export class TransactionOutputs {
42794279
*/
42804280
add(elem: TransactionOutput): void;
42814281
}
4282+
/**
4283+
*/
4284+
declare export class TransactionUnspentOutput {
4285+
free(): void;
4286+
4287+
/**
4288+
* @returns {Uint8Array}
4289+
*/
4290+
to_bytes(): Uint8Array;
4291+
4292+
/**
4293+
* @param {Uint8Array} bytes
4294+
* @returns {TransactionUnspentOutput}
4295+
*/
4296+
static from_bytes(bytes: Uint8Array): TransactionUnspentOutput;
4297+
4298+
/**
4299+
* @param {TransactionInput} input
4300+
* @param {TransactionOutput} output
4301+
* @returns {TransactionUnspentOutput}
4302+
*/
4303+
static new(
4304+
input: TransactionInput,
4305+
output: TransactionOutput
4306+
): TransactionUnspentOutput;
4307+
4308+
/**
4309+
* @returns {TransactionInput}
4310+
*/
4311+
input(): TransactionInput;
4312+
4313+
/**
4314+
* @returns {TransactionOutput}
4315+
*/
4316+
output(): TransactionOutput;
4317+
}
42824318
/**
42834319
*/
42844320
declare export class TransactionWitnessSet {
@@ -4557,6 +4593,17 @@ declare export class VRFVKey {
45574593
declare export class Value {
45584594
free(): void;
45594595

4596+
/**
4597+
* @returns {Uint8Array}
4598+
*/
4599+
to_bytes(): Uint8Array;
4600+
4601+
/**
4602+
* @param {Uint8Array} bytes
4603+
* @returns {Value}
4604+
*/
4605+
static from_bytes(bytes: Uint8Array): Value;
4606+
45604607
/**
45614608
* @param {BigNum} coin
45624609
* @returns {Value}

0 commit comments

Comments
 (0)