-
Notifications
You must be signed in to change notification settings - Fork 103
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
Geoff Lee
committed
Nov 7, 2021
1 parent
bbdd047
commit f0d6271
Showing
8 changed files
with
68 additions
and
74 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.. bech32: | ||
Bech32 Strings | ||
============== | ||
|
||
To provide some clarity for arguments, some functions in the SDK are documented that | ||
they take a type like :class:`AccAddress` where one may expect a ``str``. It is simply a | ||
type alias annotation (equivalent to ``str``) that serves only to remind the developer | ||
which format the string is expected to be in. | ||
|
||
Terra SDK also provides useful functions for checking and converting **addresses** and **pubkeys**. | ||
|
||
Addresses | ||
--------- | ||
|
||
AccAddress | ||
^^^^^^^^^^ | ||
|
||
.. autoclass:: terra_sdk.core.bech32.AccAddress | ||
:members: | ||
|
||
.. autofunction:: terra_sdk.core.bech32.is_acc_address | ||
|
||
.. autofunction:: terra_sdk.core.bech32.to_acc_address | ||
|
||
ValAddress | ||
^^^^^^^^^^ | ||
|
||
.. autoclass:: terra_sdk.core.bech32.ValAddress | ||
:members: | ||
|
||
.. autofunction:: terra_sdk.core.bech32.is_val_address | ||
|
||
.. autofunction:: terra_sdk.core.bech32.to_val_address | ||
|
||
|
||
|
||
PubKeys | ||
------- | ||
|
||
AccPubKey | ||
^^^^^^^^^ | ||
|
||
.. autoclass:: terra_sdk.core.bech32.AccPubKey | ||
:members: | ||
|
||
.. autofunction:: terra_sdk.core.bech32.is_acc_pubkey | ||
|
||
.. autofunction:: terra_sdk.core.bech32.to_acc_pubkey | ||
|
||
ValPubKey | ||
^^^^^^^^^ | ||
|
||
.. autoclass:: terra_sdk.core.bech32.ValPubKey | ||
:members: | ||
|
||
.. autofunction:: terra_sdk.core.bech32.is_acc_pubkey | ||
|
||
.. autofunction:: terra_sdk.core.bech32.to_acc_pubkey | ||
|
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
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