|
1 | 1 | import {API} from '@iota/core';
|
2 |
| -import {Trytes, Transfer, Hash} from '@iota/core/typings/types'; |
| 2 | +import {Trytes, Transfer, Hash, Transaction} from '@iota/core/typings/types'; |
3 | 3 | import {RAAMReader, Security} from './raamReader';
|
4 | 4 |
|
5 | 5 | /**
|
@@ -137,7 +137,7 @@ export class RAAM extends RAAMReader {
|
137 | 137 | * - if message is too long
|
138 | 138 | */
|
139 | 139 | public publishMessageTransfers(transfers: Transfer[], {message, depth, mwm, iota}?:
|
140 |
| - {message?: Message, depth?: number, mwm?: number, iota?: API}): Promise<Hash>; |
| 140 | + {message?: Message, depth?: number, mwm?: number, iota?: API}): Promise<Transaction[]>; |
141 | 141 |
|
142 | 142 | /**
|
143 | 143 | * Compiles the authentication path and a signature using the correct signing key. Converts the encrypted payload
|
@@ -165,7 +165,7 @@ export class RAAM extends RAAMReader {
|
165 | 165 | */
|
166 | 166 | public publish(message: Trytes, {index, tag , depth, mwm , iota, messagePassword, nextRoot}?:
|
167 | 167 | {index?: number, tag?: Trytes, depth?: number, mwm?: number, iota?: API,
|
168 |
| - messagePassword?: Trytes, nextRoot?: Int8Array}): Promise<Hash>; |
| 168 | + messagePassword?: Trytes, nextRoot?: Int8Array}): Promise<Transaction[]>; |
169 | 169 |
|
170 | 170 | /**
|
171 | 171 | * Creates a RAAM channel from a seed. For that a merkle tree is created consisting of all one-time signing keys that
|
|
0 commit comments