Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
ae96b89c
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ae96b89c
编写于
12月 04, 2017
作者:
M
Matt Witherspoon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix a few errors in applesedemo readme markdown
上级
9aec1382
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
programs/applesedemo/README.md
programs/applesedemo/README.md
+5
-5
未找到文件。
programs/applesedemo/README.md
浏览文件 @
ae96b89c
...
...
@@ -28,7 +28,7 @@ There is a crude check to print an error if attempting to execute an unsigned `a
an application that is invalidly signed. An application that is invalidly signed and attempts to use the Secure Enclave
can experience some unhelpful error messages.
##Personal Signing
##
Personal Signing
If you have access to the Apple Developer Program it is possible to use the developer portal to download a provisioning
profile and/or create a developer certificate if you do not already have one.
...
...
@@ -42,8 +42,8 @@ and certificate if you do not already have one. You may have to manually look at
Remember that the TeamID plus the Bundle ID that you fill out in XCode gate access to the Secure Enclave. Changing either
of these values will cause the application to be unable to see keys generated with previous values.
#Usage
##Generate Private Key
#
Usage
##
Generate Private Key
First, create a private key inside of the secure enclave. This application supports creating the key in a few different manners
(see
`--help`
) that control the level of security the key is protected with. In this example, the key will be created in a way
that requires usage of a fingerprint when signing a digest (such a signing a transaction).
...
...
@@ -54,7 +54,7 @@ public_key(EOSR17iKCZrb1JqSjUncCbDGQenzSqyuNmPU8iUA15efNW5KD1iHd9x)
```
The public key for the private key is printed; note it somewhere. It is possible to ask the Secure Enclave to
create multiple private keys and assign labels to them but this application only allows a single key at once.
##Create A Digest and Sign It
##
Create A Digest and Sign It
EOSIO uses SHA256 digests to sign transactions, create a simple SHA256 digest from a small string:
```
$ echo 'Hello world!' | shasum -a 256
...
...
@@ -66,7 +66,7 @@ generated until a valid fingerprint is used.
$ applesedemo.app/Contents/MacOS/applesedemo --sign 0ba904eae8773b70c75333db4de2f3ac45a8ad4ddba1b242f0b3cfc199391dd8
signature(EOSR1Jx4sBidhFV6PSvS8hWbG5oh77HKud8xpkoHLvWaZVaBeWttRpyEjaGbPRVEKu3JePTyVjANmP4GKFtG2DAuB4MTVqsdC9W)
```
##Key Recovery
##
Key Recovery
Given the signature and digest, we must be able to correlate that with the public key that signed the digest.
```
$ applesedemo.app/Contents/MacOS/applesedemo --recover 0ba904eae8773b70c75333db4de2f3ac45a8ad4ddba1b242f0b3cfc199391dd8 \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录