mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Content - RPC - Add bls
Used to create operator keys for DIP3 Pro*tx special txs
This commit is contained in:
parent
6a8da4d8ad
commit
9fa37ab7df
8 changed files with 91 additions and 0 deletions
|
@ -19,6 +19,10 @@ Use v0.n.n in abbreviation title to prevent autocrossrefing.
|
|||
<!-- Dash - Not Implemented -->
|
||||
{% assign DASH_NOT_IMPLEMENTED='**<abbr title="Not Implemented in Dash">Not Implemented</abbr>**' %}
|
||||
|
||||
<!-- Dash Core 0.13.0.0 Nov 2018 -->
|
||||
{% assign DASH_NEW0_13_0='**<abbr title="New in Dash Core v0.13.0">New in Dash Core 0.13.0</abbr>**' %}
|
||||
{% assign DASH_UPDATED0_13_0='**<abbr title="Updated in Dash Core v0.13.0">Updated in Dash Core 0.13.0</abbr>**' %}
|
||||
|
||||
<!-- Dash Core 0.12.3.0 July 2018 -->
|
||||
{% assign DASH_NEW0_12_3='**<abbr title="New in Dash Core v0.12.3">New in Dash Core 0.12.3</abbr>**' %}
|
||||
{% assign DASH_UPDATED0_12_3='**<abbr title="Updated in Dash Core v0.12.3">Updated in Dash Core 0.12.3</abbr>**' %}
|
||||
|
@ -157,6 +161,16 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
|
|||
|
||||
{% endautocrossref %}
|
||||
|
||||
#### Evolution RPCs
|
||||
{:.no_toc}
|
||||
<!-- no subhead-links here -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
* [BLS][rpc bls]: {{summary_bls}} {{DASH_NEW0_13_0}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
#### Generating RPCs
|
||||
{:.no_toc}
|
||||
<!-- no subhead-links here -->
|
||||
|
|
64
_includes/devdoc/dash-core/rpcs/rpcs/bls.md
Normal file
64
_includes/devdoc/dash-core/rpcs/rpcs/bls.md
Normal file
|
@ -0,0 +1,64 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/bls.md" %}
|
||||
|
||||
<!-- __ -->
|
||||
|
||||
##### BLS
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_bLS="provides a set of commands to execute BLS-related actions." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `bls` RPC {{summary_bLS}}
|
||||
|
||||
{% endautocrossref %}
|
||||
|
||||
###### BLS<!--noref--> Generate
|
||||
<!-- no subhead-links here -->
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `bls<!--noref--> generate` RPC creates a new BLS secret/public key pair.
|
||||
|
||||
*Parameters: none*
|
||||
|
||||
*Result---a secret/public key pair*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "`result`"
|
||||
t: "object"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "BLS key pair"
|
||||
|
||||
- n: "→<br>`secret`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "A BLS secret key"
|
||||
|
||||
- n: "→<br>`public`"
|
||||
t: "string (hex)"
|
||||
p: "Required<br>(exactly 1)"
|
||||
d: "A BLS public key"
|
||||
{% enditemplate %}
|
||||
|
||||
*Example from Dash Core 0.13.0*
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet bls generate
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
{% highlight bash %}
|
||||
{
|
||||
"secret": "52f35cd3d977a505485f2474e7e71ef3f60f859603d72ad6b0fa7f7bd163e144",
|
||||
"public": "885d01d746c3e4d2093b0975de2d8c1f3e5a2c3e8fdaaed929f86fc9fbb278a095248163c101a2456650b415776b7990"
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
*See also: none*
|
||||
|
||||
{% endautocrossref %}
|
Loading…
Add table
Add a link
Reference in a new issue