-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
188 additions
and
106 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,35 @@ | ||
import { Code } from '/components/Code'; | ||
|
||
# PublicKey | ||
**Class representing a public key model. Preferred to use this over plain public key string** | ||
**Class representing a public key model. Ideal to use this class over plain public key string** | ||
|
||
<Code> | ||
```python | ||
class PublicKey(value: bytearray | bytes | int | str | List[int]) | ||
``` | ||
</Code> | ||
|
||
> The class requires one value argument which can be string, bytes, bytearray or int array form of the public key. | ||
> The class requires one value argument to initialize which can be string, bytes, bytearray or int array form of the public key. | ||
|
||
#### Methods | ||
- [base58_encode](#base58_encode) | ||
- [base58_decode](#base58_decode) | ||
|
||
#### Attributes | ||
- [byte_value](#byte_value ) | ||
- [byte_value](#byte_value) | ||
|
||
|
||
## Methods | ||
|
||
#### .base58_encode | ||
Converts the public key into base 58 form | ||
Returns the public key in base58 encoding (the type we see in wallets) | ||
|
||
<Code> | ||
```python | ||
def base58_encode() | ||
``` | ||
</Code> | ||
|
||
#### .base58_decode | ||
Decodes a base58 encoded public key | ||
|
||
<Code> | ||
```python | ||
def base58_decode() | ||
``` | ||
</Code> | ||
|
||
|
||
## Attributes | ||
|
||
#### .byte_value | ||
Returns the byte value of the public key. Recommended to use ```bytes()``` function and passing to public key to get the byte value over this attribute. | ||
Returns the byte value of the public key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "0.1.9" | ||
__version__ = "1.0.0" | ||
|
||
from .client import Client | ||
from .async_client import AsyncClient | ||
|
Oops, something went wrong.