@@ -28,6 +28,7 @@ $root.ics23 = (function() {
28
28
* @property {number } KECCAK=3 KECCAK value
29
29
* @property {number } RIPEMD160=4 RIPEMD160 value
30
30
* @property {number } BITCOIN=5 BITCOIN value
31
+ * @property {number } SHA512_256=6 SHA512_256 value
31
32
*/
32
33
ics23 . HashOp = ( function ( ) {
33
34
var valuesById = { } , values = Object . create ( valuesById ) ;
@@ -37,6 +38,7 @@ $root.ics23 = (function() {
37
38
values [ valuesById [ 3 ] = "KECCAK" ] = 3 ;
38
39
values [ valuesById [ 4 ] = "RIPEMD160" ] = 4 ;
39
40
values [ valuesById [ 5 ] = "BITCOIN" ] = 5 ;
41
+ values [ valuesById [ 6 ] = "SHA512_256" ] = 6 ;
40
42
return values ;
41
43
} ) ( ) ;
42
44
@@ -1161,6 +1163,7 @@ $root.ics23 = (function() {
1161
1163
case 3 :
1162
1164
case 4 :
1163
1165
case 5 :
1166
+ case 6 :
1164
1167
break ;
1165
1168
}
1166
1169
if ( message . prehashKey != null && message . hasOwnProperty ( "prehashKey" ) )
@@ -1173,6 +1176,7 @@ $root.ics23 = (function() {
1173
1176
case 3 :
1174
1177
case 4 :
1175
1178
case 5 :
1179
+ case 6 :
1176
1180
break ;
1177
1181
}
1178
1182
if ( message . prehashValue != null && message . hasOwnProperty ( "prehashValue" ) )
@@ -1185,6 +1189,7 @@ $root.ics23 = (function() {
1185
1189
case 3 :
1186
1190
case 4 :
1187
1191
case 5 :
1192
+ case 6 :
1188
1193
break ;
1189
1194
}
1190
1195
if ( message . length != null && message . hasOwnProperty ( "length" ) )
@@ -1245,6 +1250,10 @@ $root.ics23 = (function() {
1245
1250
case 5 :
1246
1251
message . hash = 5 ;
1247
1252
break ;
1253
+ case "SHA512_256" :
1254
+ case 6 :
1255
+ message . hash = 6 ;
1256
+ break ;
1248
1257
}
1249
1258
switch ( object . prehashKey ) {
1250
1259
case "NO_HASH" :
@@ -1271,6 +1280,10 @@ $root.ics23 = (function() {
1271
1280
case 5 :
1272
1281
message . prehashKey = 5 ;
1273
1282
break ;
1283
+ case "SHA512_256" :
1284
+ case 6 :
1285
+ message . prehashKey = 6 ;
1286
+ break ;
1274
1287
}
1275
1288
switch ( object . prehashValue ) {
1276
1289
case "NO_HASH" :
@@ -1297,6 +1310,10 @@ $root.ics23 = (function() {
1297
1310
case 5 :
1298
1311
message . prehashValue = 5 ;
1299
1312
break ;
1313
+ case "SHA512_256" :
1314
+ case 6 :
1315
+ message . prehashValue = 6 ;
1316
+ break ;
1300
1317
}
1301
1318
switch ( object . length ) {
1302
1319
case "NO_PREFIX" :
@@ -1579,6 +1596,7 @@ $root.ics23 = (function() {
1579
1596
case 3 :
1580
1597
case 4 :
1581
1598
case 5 :
1599
+ case 6 :
1582
1600
break ;
1583
1601
}
1584
1602
if ( message . prefix != null && message . hasOwnProperty ( "prefix" ) )
@@ -1627,6 +1645,10 @@ $root.ics23 = (function() {
1627
1645
case 5 :
1628
1646
message . hash = 5 ;
1629
1647
break ;
1648
+ case "SHA512_256" :
1649
+ case 6 :
1650
+ message . hash = 6 ;
1651
+ break ;
1630
1652
}
1631
1653
if ( object . prefix != null )
1632
1654
if ( typeof object . prefix === "string" )
@@ -2208,6 +2230,7 @@ $root.ics23 = (function() {
2208
2230
case 3 :
2209
2231
case 4 :
2210
2232
case 5 :
2233
+ case 6 :
2211
2234
break ;
2212
2235
}
2213
2236
return null ;
@@ -2268,6 +2291,10 @@ $root.ics23 = (function() {
2268
2291
case 5 :
2269
2292
message . hash = 5 ;
2270
2293
break ;
2294
+ case "SHA512_256" :
2295
+ case 6 :
2296
+ message . hash = 6 ;
2297
+ break ;
2271
2298
}
2272
2299
return message ;
2273
2300
} ;
0 commit comments