Skip to content

Commit

Permalink
upgrade internal cloak/uncloak -> deemru/cloaked
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Nov 27, 2023
1 parent f6aa188 commit 3583f93
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 150 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"google/protobuf": "^3.13",
"ext-curl": "*",
"ext-gmp": "*",
"ext-mbstring": "*"
"ext-mbstring": "*",
"deemru/cloaked": "^1.0"
},
"suggest": {
"ext-sodium": "Up to ~2000x faster sign/verify"
Expand Down
22 changes: 13 additions & 9 deletions docs/WavesKit.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
**Description**

```php
public __construct (string $chainId, mixed|null $logFunction)
public __construct (string $chainId, mixed|null $logFunction, bool $keyCaching)
```

Creates WavesKit instance
Expand All @@ -110,6 +110,8 @@ Creates WavesKit instance
: Blockchain identifier (default: 'W')
* `(mixed|null) $logFunction`
: Log functionality (default: null)
* `(bool) $keyCaching`
: Cache key flag (default: false)

**Return Values**

Expand Down Expand Up @@ -573,9 +575,9 @@ Gets address

**Return Values**

`string`
`string|false`

> Address
> Address or FALSE on failure

<hr />
Expand Down Expand Up @@ -834,7 +836,7 @@ Gets order history for your account
**Description**

```php
public getPrivateKey (bool $raw, string|null $seed, string|null $prefix)
public getPrivateKey (bool $raw, string|null $seed, string|null $prefix, bool|false $noret)
```

Gets private key
Expand All @@ -849,12 +851,14 @@ Gets private key
: Seed string in binary format (default: null)
* `(string|null) $prefix`
: Prefix string in binary format (default: "\0\0\0\0")
* `(bool|false) $noret`
: Do not return the key (default: false)

**Return Values**

`string`
`string|bool`

> Private key
> Private key or FALSE on failure or TRUE on noret

<hr />
Expand All @@ -879,9 +883,9 @@ Gets public Key

**Return Values**

`string`
`string|false`

> Public key
> Public key or FALSE on failure

<hr />
Expand Down Expand Up @@ -1379,7 +1383,7 @@ Sets an order fee based on matcher settings

**Return Values**

`array|bool`
`array|false`

> Order as an array or FALSE on failure
Expand Down
Loading

0 comments on commit 3583f93

Please sign in to comment.