@attocash/commons-js 5.0.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-node.mjs +1 -0
- package/commons-commons-node.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ function writeAttoAlgorithm(_this__u8e3s4, algorithm) {
|
|
|
77
77
|
return _this__u8e3s4;
|
|
78
78
|
}
|
|
79
79
|
function writeAttoPublicKey(_this__u8e3s4, publicKey) {
|
|
80
|
-
_this__u8e3s4.
|
|
80
|
+
_this__u8e3s4.e2t(publicKey.value);
|
|
81
81
|
return _this__u8e3s4;
|
|
82
82
|
}
|
|
83
83
|
function writeAttoHeight(_this__u8e3s4, height) {
|
|
@@ -93,7 +93,7 @@ function writeInstant(_this__u8e3s4, instant) {
|
|
|
93
93
|
return _this__u8e3s4;
|
|
94
94
|
}
|
|
95
95
|
function writeAttoHash(_this__u8e3s4, hash) {
|
|
96
|
-
_this__u8e3s4.
|
|
96
|
+
_this__u8e3s4.e2t(hash.value);
|
|
97
97
|
return _this__u8e3s4;
|
|
98
98
|
}
|
|
99
99
|
function readAttoSignature(_this__u8e3s4) {
|
|
@@ -103,11 +103,11 @@ function readAttoWork(_this__u8e3s4) {
|
|
|
103
103
|
return new (AttoWork())(readByteArray_0(_this__u8e3s4, 8));
|
|
104
104
|
}
|
|
105
105
|
function writeAttoSignature(_this__u8e3s4, signature) {
|
|
106
|
-
_this__u8e3s4.
|
|
106
|
+
_this__u8e3s4.e2t(signature.value);
|
|
107
107
|
return _this__u8e3s4;
|
|
108
108
|
}
|
|
109
109
|
function writeAttoWork(_this__u8e3s4, signature) {
|
|
110
|
-
_this__u8e3s4.
|
|
110
|
+
_this__u8e3s4.e2t(signature.value);
|
|
111
111
|
return _this__u8e3s4;
|
|
112
112
|
}
|
|
113
113
|
//region block: exports
|
|
@@ -28,7 +28,7 @@ var CompanionClass;
|
|
|
28
28
|
function Companion() {
|
|
29
29
|
if (CompanionClass === VOID) {
|
|
30
30
|
class $ {
|
|
31
|
-
|
|
31
|
+
e2v() {
|
|
32
32
|
return AttoChallengeSerializer_getInstance();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -74,12 +74,12 @@ function AttoChallenge() {
|
|
|
74
74
|
gl() {
|
|
75
75
|
return this.value;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
v31(value) {
|
|
78
78
|
return new (AttoChallenge())(value);
|
|
79
79
|
}
|
|
80
80
|
copy(value, $super) {
|
|
81
81
|
value = value === VOID ? this.value : value;
|
|
82
|
-
return $super === VOID ? this.
|
|
82
|
+
return $super === VOID ? this.v31(value) : $super.v31.call(this, value);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
initMetadataForClass($, 'AttoChallenge', VOID, VOID, VOID, VOID, VOID, {0: AttoChallengeSerializer_getInstance});
|
|
@@ -93,16 +93,16 @@ function AttoChallengeSerializer() {
|
|
|
93
93
|
class $ {
|
|
94
94
|
constructor() {
|
|
95
95
|
AttoChallengeSerializer_instance = this;
|
|
96
|
-
this.
|
|
96
|
+
this.w31_1 = PrimitiveSerialDescriptor('AttoChallenge', STRING_getInstance());
|
|
97
97
|
}
|
|
98
98
|
xs() {
|
|
99
|
-
return this.
|
|
99
|
+
return this.w31_1;
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
x31(encoder, value) {
|
|
102
102
|
encoder.oy(value.toString());
|
|
103
103
|
}
|
|
104
104
|
ys(encoder, value) {
|
|
105
|
-
return this.
|
|
105
|
+
return this.x31(encoder, value instanceof AttoChallenge() ? value : THROW_CCE());
|
|
106
106
|
}
|
|
107
107
|
zs(decoder) {
|
|
108
108
|
return new (AttoChallenge())(fromHexToByteArray(decoder.fx()));
|
|
@@ -35,7 +35,7 @@ function Companion() {
|
|
|
35
35
|
return new (AttoHash())(fromHexToByteArray(value));
|
|
36
36
|
}
|
|
37
37
|
hash(size, byteArrays) {
|
|
38
|
-
return new (AttoHash())(AttoHasher_instance.
|
|
38
|
+
return new (AttoHash())(AttoHasher_instance.r2x(size, byteArrays.slice()));
|
|
39
39
|
}
|
|
40
40
|
hashVote(blockHash, algorithm, timestamp) {
|
|
41
41
|
// Inline function 'kotlin.UByte.toByte' call
|
|
@@ -45,7 +45,7 @@ function Companion() {
|
|
|
45
45
|
var tmp$ret$1 = new Int8Array([tmp$ret$0]);
|
|
46
46
|
return this.hash(32, [blockHash.value, tmp$ret$1, toByteArray(timestamp)]);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
e2v() {
|
|
49
49
|
return AttoHashSerializer_getInstance();
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -111,12 +111,12 @@ function AttoHash() {
|
|
|
111
111
|
gl() {
|
|
112
112
|
return this.value;
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
v31(value) {
|
|
115
115
|
return new (AttoHash())(value);
|
|
116
116
|
}
|
|
117
117
|
copy(value, $super) {
|
|
118
118
|
value = value === VOID ? this.value : value;
|
|
119
|
-
return $super === VOID ? this.
|
|
119
|
+
return $super === VOID ? this.v31(value) : $super.v31.call(this, value);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
initMetadataForClass($, 'AttoHash', VOID, VOID, VOID, VOID, VOID, {0: AttoHashSerializer_getInstance});
|
|
@@ -139,16 +139,16 @@ function AttoHashSerializer() {
|
|
|
139
139
|
class $ {
|
|
140
140
|
constructor() {
|
|
141
141
|
AttoHashSerializer_instance = this;
|
|
142
|
-
this.
|
|
142
|
+
this.y31_1 = PrimitiveSerialDescriptor('AttoHash', STRING_getInstance());
|
|
143
143
|
}
|
|
144
144
|
xs() {
|
|
145
|
-
return this.
|
|
145
|
+
return this.y31_1;
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
z31(encoder, value) {
|
|
148
148
|
encoder.oy(value.toString());
|
|
149
149
|
}
|
|
150
150
|
ys(encoder, value) {
|
|
151
|
-
return this.
|
|
151
|
+
return this.z31(encoder, value instanceof AttoHash() ? value : THROW_CCE());
|
|
152
152
|
}
|
|
153
153
|
zs(decoder) {
|
|
154
154
|
return Companion_instance.parse(decoder.fx());
|
|
@@ -37,13 +37,13 @@ function Companion() {
|
|
|
37
37
|
this.MIN = new (AttoHeight())(_ULong___init__impl__c78o9k(new (Long())(1, 0)));
|
|
38
38
|
this.MAX = new (AttoHeight())(_ULong___init__impl__c78o9k(new (Long())(-1, -1)));
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
p2y() {
|
|
41
41
|
return this.MIN;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
o2y() {
|
|
44
44
|
return this.MAX;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
e2v() {
|
|
47
47
|
return AttoHeightSerializer_getInstance();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -66,25 +66,25 @@ function AttoHeight() {
|
|
|
66
66
|
Companion_getInstance_0();
|
|
67
67
|
this.value = value;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
a32() {
|
|
70
70
|
return this.value;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
d30(other) {
|
|
73
73
|
var tmp0 = this.value;
|
|
74
74
|
// Inline function 'kotlin.ULong.compareTo' call
|
|
75
75
|
var other_0 = other.value;
|
|
76
76
|
return ulongCompare(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other_0));
|
|
77
77
|
}
|
|
78
78
|
d(other) {
|
|
79
|
-
return this.
|
|
79
|
+
return this.d30(other instanceof AttoHeight() ? other : THROW_CCE());
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
b32(uLong) {
|
|
82
82
|
// Inline function 'kotlin.ULong.plus' call
|
|
83
83
|
var this_0 = this.value;
|
|
84
84
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_0).p3(_ULong___get_data__impl__fggpzb(uLong)));
|
|
85
85
|
return new (AttoHeight())(tmp$ret$0);
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
c32(uInt) {
|
|
88
88
|
// Inline function 'kotlin.ULong.plus' call
|
|
89
89
|
var tmp0 = this.value;
|
|
90
90
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -104,13 +104,13 @@ function AttoHeight() {
|
|
|
104
104
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp0).p3(_ULong___get_data__impl__fggpzb(other)));
|
|
105
105
|
return new (AttoHeight())(tmp$ret$0);
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
d32(uLong) {
|
|
108
108
|
// Inline function 'kotlin.ULong.minus' call
|
|
109
109
|
var this_0 = this.value;
|
|
110
110
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_0).q3(_ULong___get_data__impl__fggpzb(uLong)));
|
|
111
111
|
return new (AttoHeight())(tmp$ret$0);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
e32(uInt) {
|
|
114
114
|
// Inline function 'kotlin.ULong.minus' call
|
|
115
115
|
var tmp0 = this.value;
|
|
116
116
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -147,15 +147,15 @@ function AttoHeight() {
|
|
|
147
147
|
toString() {
|
|
148
148
|
return ULong__toString_impl_f9au7k(this.value);
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
s2y() {
|
|
151
151
|
return this.value;
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
t2y(value) {
|
|
154
154
|
return new (AttoHeight())(value);
|
|
155
155
|
}
|
|
156
156
|
copy(value, $super) {
|
|
157
157
|
value = value === VOID ? this.value : value;
|
|
158
|
-
return $super === VOID ? this.
|
|
158
|
+
return $super === VOID ? this.t2y(value) : $super.t2y.call(this, new (ULong())(value));
|
|
159
159
|
}
|
|
160
160
|
hashCode() {
|
|
161
161
|
return ULong__hashCode_impl_6hv2lb(this.value);
|
|
@@ -191,16 +191,16 @@ function AttoHeightSerializer() {
|
|
|
191
191
|
class $ {
|
|
192
192
|
constructor() {
|
|
193
193
|
AttoHeightSerializer_instance = this;
|
|
194
|
-
this.
|
|
194
|
+
this.f32_1 = serializer(Companion_getInstance()).xs();
|
|
195
195
|
}
|
|
196
196
|
xs() {
|
|
197
|
-
return this.
|
|
197
|
+
return this.f32_1;
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
g32(encoder, value) {
|
|
200
200
|
serializer(Companion_getInstance()).ys(encoder, new (ULong())(value.value));
|
|
201
201
|
}
|
|
202
202
|
ys(encoder, value) {
|
|
203
|
-
return this.
|
|
203
|
+
return this.g32(encoder, value instanceof AttoHeight() ? value : THROW_CCE());
|
|
204
204
|
}
|
|
205
205
|
zs(decoder) {
|
|
206
206
|
return new (AttoHeight())(serializer(Companion_getInstance()).zs(decoder).fs_1);
|
|
@@ -53,22 +53,22 @@ function Companion() {
|
|
|
53
53
|
var tmp$ret$0 = new (UByte())(element.code);
|
|
54
54
|
destination.d3(tmp$ret$0, element);
|
|
55
55
|
}
|
|
56
|
-
tmp.
|
|
56
|
+
tmp.h32_1 = destination;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
i32() {
|
|
59
59
|
return this.INITIAL_LIVE_THRESHOLD;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
j32() {
|
|
62
62
|
return this.INITIAL_DATE;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
k32() {
|
|
65
65
|
return this.INITIAL_INSTANT;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
l32() {
|
|
68
68
|
return this.DOUBLING_PERIOD;
|
|
69
69
|
}
|
|
70
70
|
from(code) {
|
|
71
|
-
var tmp0_elvis_lhs = this.
|
|
71
|
+
var tmp0_elvis_lhs = this.h32_1.w2(new (UByte())(code));
|
|
72
72
|
return tmp0_elvis_lhs == null ? AttoNetwork_UNKNOWN_getInstance() : tmp0_elvis_lhs;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -132,10 +132,10 @@ function AttoNetwork() {
|
|
|
132
132
|
this.code = code;
|
|
133
133
|
this.thresholdIncreaseFactor = thresholdIncreaseFactor;
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
d2y() {
|
|
136
136
|
return this.code;
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
m32() {
|
|
139
139
|
return this.thresholdIncreaseFactor;
|
|
140
140
|
}
|
|
141
141
|
get name() {
|
|
@@ -16,26 +16,26 @@ function HmacSha512() {
|
|
|
16
16
|
if (HmacSha512Class === VOID) {
|
|
17
17
|
class $ {
|
|
18
18
|
constructor(secretKey) {
|
|
19
|
-
this.
|
|
19
|
+
this.r32_1 = new HMAC(SHA512, new Uint8Array(toTypedArray(secretKey)));
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
z32(data, offset, len) {
|
|
22
22
|
var chunk = copyOfRange(data, offset, offset + len | 0);
|
|
23
|
-
this.
|
|
23
|
+
this.r32_1.update(new Uint8Array(toTypedArray(chunk)));
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
s32(data, offset, len, $super) {
|
|
26
26
|
offset = offset === VOID ? 0 : offset;
|
|
27
27
|
len = len === VOID ? data.length : len;
|
|
28
28
|
var tmp;
|
|
29
29
|
if ($super === VOID) {
|
|
30
|
-
this.
|
|
30
|
+
this.z32(data, offset, len);
|
|
31
31
|
tmp = Unit_instance;
|
|
32
32
|
} else {
|
|
33
|
-
tmp = $super.
|
|
33
|
+
tmp = $super.z32.call(this, data, offset, len);
|
|
34
34
|
}
|
|
35
35
|
return tmp;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
var digest = this.
|
|
37
|
+
t32(output, offset) {
|
|
38
|
+
var digest = this.r32_1.digest();
|
|
39
39
|
// Inline function 'kotlin.repeat' call
|
|
40
40
|
var times = digest.length;
|
|
41
41
|
var inductionVariable = 0;
|
|
@@ -49,14 +49,14 @@ function Companion() {
|
|
|
49
49
|
if (CompanionClass === VOID) {
|
|
50
50
|
class $ {
|
|
51
51
|
constructor() {
|
|
52
|
-
this.
|
|
52
|
+
this.n32_1 = 1869902945;
|
|
53
53
|
}
|
|
54
54
|
parse(value) {
|
|
55
|
-
return AttoPrivateKey().
|
|
55
|
+
return AttoPrivateKey().o32(fromHexToByteArray(value));
|
|
56
56
|
}
|
|
57
57
|
generate() {
|
|
58
|
-
var value = SecureRandom_instance.
|
|
59
|
-
return AttoPrivateKey().
|
|
58
|
+
var value = SecureRandom_instance.p32(_UInt___init__impl__l7qpdl(32));
|
|
59
|
+
return AttoPrivateKey().o32(value);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
initMetadataForCompanion($);
|
|
@@ -73,9 +73,9 @@ function AttoPrivateKey() {
|
|
|
73
73
|
if (AttoPrivateKeyClass === VOID) {
|
|
74
74
|
class $ {
|
|
75
75
|
constructor(value) {
|
|
76
|
-
return new.target.
|
|
76
|
+
return new.target.o32(value);
|
|
77
77
|
}
|
|
78
|
-
static
|
|
78
|
+
static o32(value) {
|
|
79
79
|
var $this = createThis(this);
|
|
80
80
|
$this.value = value;
|
|
81
81
|
checkLength($this.value, 32);
|
|
@@ -85,7 +85,7 @@ function AttoPrivateKey() {
|
|
|
85
85
|
return this.value;
|
|
86
86
|
}
|
|
87
87
|
static fromSeed(seed, index) {
|
|
88
|
-
return this.
|
|
88
|
+
return this.o32(ed25519BIP44(seed, "m/44'/" + Companion_instance.n32_1 + "'/" + new (UInt())(index) + "'"));
|
|
89
89
|
}
|
|
90
90
|
toString() {
|
|
91
91
|
return '' + this.value.length + ' bytes';
|
|
@@ -97,7 +97,7 @@ function AttoPrivateKey() {
|
|
|
97
97
|
return AttoPrivateKeyClass;
|
|
98
98
|
}
|
|
99
99
|
function ed25519BIP44(seed, path) {
|
|
100
|
-
return Companion_instance_0.
|
|
100
|
+
return Companion_instance_0.q32(seed, path);
|
|
101
101
|
}
|
|
102
102
|
function BIP44$Companion$ed25519$lambda(it) {
|
|
103
103
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -113,23 +113,23 @@ var CompanionClass_0;
|
|
|
113
113
|
function Companion_0() {
|
|
114
114
|
if (CompanionClass_0 === VOID) {
|
|
115
115
|
class $ {
|
|
116
|
-
|
|
116
|
+
q32(seed, path) {
|
|
117
117
|
var hmacHelper = new (HmacSha512())(encodeToByteArray('ed25519 seed'));
|
|
118
|
-
hmacHelper.
|
|
118
|
+
hmacHelper.s32(seed.value);
|
|
119
119
|
var tmp = asSequence(split(path, ['/']));
|
|
120
120
|
var tmp_0 = map(tmp, BIP44$Companion$ed25519$lambda);
|
|
121
121
|
var tmp_1 = filter(tmp_0, BIP44$Companion$ed25519$lambda_0);
|
|
122
122
|
var values = toList(map(tmp_1, BIP44$Companion$ed25519$lambda_1));
|
|
123
123
|
// Inline function 'kotlin.also' call
|
|
124
124
|
var this_0 = new Int8Array(64);
|
|
125
|
-
hmacHelper.
|
|
126
|
-
var bip44 = BIP44().
|
|
125
|
+
hmacHelper.t32(this_0, 0);
|
|
126
|
+
var bip44 = BIP44().w32(this_0);
|
|
127
127
|
var _iterator__ex2g4s = values.d1();
|
|
128
128
|
while (_iterator__ex2g4s.e1()) {
|
|
129
129
|
var v = _iterator__ex2g4s.f1();
|
|
130
|
-
bip44 = bip44.
|
|
130
|
+
bip44 = bip44.x32(v);
|
|
131
131
|
}
|
|
132
|
-
return bip44.
|
|
132
|
+
return bip44.u32_1;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
initMetadataForCompanion($);
|
|
@@ -145,28 +145,28 @@ var BIP44Class;
|
|
|
145
145
|
function BIP44() {
|
|
146
146
|
if (BIP44Class === VOID) {
|
|
147
147
|
class $ {
|
|
148
|
-
static
|
|
148
|
+
static y32(key, hmacHelper) {
|
|
149
149
|
var $this = createThis(this);
|
|
150
|
-
$this.
|
|
151
|
-
$this.
|
|
150
|
+
$this.u32_1 = key;
|
|
151
|
+
$this.v32_1 = hmacHelper;
|
|
152
152
|
return $this;
|
|
153
153
|
}
|
|
154
|
-
static
|
|
155
|
-
return this.
|
|
154
|
+
static w32(derived) {
|
|
155
|
+
return this.y32(copyOfRange(derived, 0, 32), new (HmacSha512())(copyOfRange(derived, 32, 64)));
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
x32(value) {
|
|
158
158
|
// Inline function 'kotlin.byteArrayOf' call
|
|
159
159
|
var tmp$ret$0 = new Int8Array([0]);
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
160
|
+
this.v32_1.s32(tmp$ret$0);
|
|
161
|
+
this.v32_1.z32(this.u32_1, 0, 32);
|
|
162
162
|
var buffer = new (Buffer())();
|
|
163
|
-
buffer.
|
|
163
|
+
buffer.p2t(value);
|
|
164
164
|
var indexBytes = readByteArray(buffer);
|
|
165
165
|
indexBytes[0] = toByte(indexBytes[0] | -128);
|
|
166
|
-
this.
|
|
166
|
+
this.v32_1.z32(indexBytes, 0, indexBytes.length);
|
|
167
167
|
var derived = new Int8Array(64);
|
|
168
|
-
this.
|
|
169
|
-
return BIP44().
|
|
168
|
+
this.v32_1.t32(derived, 0);
|
|
169
|
+
return BIP44().w32(derived);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
initMetadataForClass($, 'BIP44');
|
|
@@ -29,7 +29,7 @@ function Companion() {
|
|
|
29
29
|
parse(value) {
|
|
30
30
|
return new (AttoPublicKey())(fromHexToByteArray(value));
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
e2v() {
|
|
33
33
|
return AttoPublicKeySerializer_getInstance();
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -69,12 +69,12 @@ function AttoPublicKey() {
|
|
|
69
69
|
gl() {
|
|
70
70
|
return this.value;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
v31(value) {
|
|
73
73
|
return new (AttoPublicKey())(value);
|
|
74
74
|
}
|
|
75
75
|
copy(value, $super) {
|
|
76
76
|
value = value === VOID ? this.value : value;
|
|
77
|
-
return $super === VOID ? this.
|
|
77
|
+
return $super === VOID ? this.v31(value) : $super.v31.call(this, value);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
initMetadataForClass($, 'AttoPublicKey', VOID, VOID, VOID, VOID, VOID, {0: AttoPublicKeySerializer_getInstance});
|
|
@@ -88,16 +88,16 @@ function AttoPublicKeySerializer() {
|
|
|
88
88
|
class $ {
|
|
89
89
|
constructor() {
|
|
90
90
|
AttoPublicKeySerializer_instance = this;
|
|
91
|
-
this.
|
|
91
|
+
this.a33_1 = PrimitiveSerialDescriptor('AttoPublicKey', STRING_getInstance());
|
|
92
92
|
}
|
|
93
93
|
xs() {
|
|
94
|
-
return this.
|
|
94
|
+
return this.a33_1;
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
b33(encoder, value) {
|
|
97
97
|
encoder.oy(value.toString());
|
|
98
98
|
}
|
|
99
99
|
ys(encoder, value) {
|
|
100
|
-
return this.
|
|
100
|
+
return this.b33(encoder, value instanceof AttoPublicKey() ? value : THROW_CCE());
|
|
101
101
|
}
|
|
102
102
|
zs(decoder) {
|
|
103
103
|
return Companion_instance.parse(decoder.fx());
|