Skip to content

Commit 7d8ae7b

Browse files
authored
Merge pull request #1 from 0x070696E65/no-metro
暗号化、ランダム、hmacなどをnode-forgeに変更
2 parents 7b9d514 + c6eefde commit 7d8ae7b

22 files changed

+429
-9328
lines changed

.prettierrc.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
printWidth: 120
2+
semi: true
3+
trailingComma: es5
4+
singleQuote: true
5+
tabWidth: 2
6+
useTabs: false
7+
bracketSpacing: true
8+
jsxBracketSameLine: false
9+
arrowParens: always

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ This library is a lightweight SDK extracted from the Symbol SDK’s use of Node.
88

99
## Target Users
1010

11-
* Developers considering Symbol blockchain application development on Expo environment
12-
* Developers who want to leverage the convenience of Managed React Native while developing secure Symbol applications
13-
* Developers already familiar with symbol-sdk
14-
11+
- Developers considering Symbol blockchain application development on Expo environment
12+
- Developers who want to leverage the convenience of Managed React Native while developing secure Symbol applications
13+
- Developers already familiar with symbol-sdk
1514

1615
## Installation
1716

@@ -24,7 +23,7 @@ npm install @symbol-blockchain-community/expo-symbol-sdk
2423
Create PrivateKey
2524

2625
```ts
27-
import { Account, NetworkType } from "@symbol-blockchain-community/expo-symbol-sdk";
26+
import { Account, NetworkType } from '@symbol-blockchain-community/expo-symbol-sdk';
2827

2928
const account = Account.generateNewAccount(NetworkType.TEST_NET);
3029
console.log(account);
@@ -35,14 +34,14 @@ Signing a transaction created with symbol-sdk.
3534
```ts
3635
const account = Account.generateNewAccount(NetworkType.TEST_NET);
3736

38-
const generationHash = "49D6E1CE276A85B70EAFE52349AACCA389302E7A9754BCF1221E79494FC665A4";
37+
const generationHash = '49D6E1CE276A85B70EAFE52349AACCA389302E7A9754BCF1221E79494FC665A4';
3938
const serializedTransactionPayload =
40-
"AE00000000000000000000000000000000000000000000000000000000000000" +
41-
"0000000000000000000000000000000000000000000000000000000000000000" +
42-
"0000000000000000000000000000000000000000000000000000000000000000" +
43-
"0000000000000000000000000000000000000000000000000000000000000001" +
44-
"985441F84300000000000003983E640900000098EC10797B167D59E419781125" +
45-
"EE36676AA61D9E4F90CDAF0E000000000000000048656C6C6F2053796D626F6C21";
39+
'AE00000000000000000000000000000000000000000000000000000000000000' +
40+
'0000000000000000000000000000000000000000000000000000000000000000' +
41+
'0000000000000000000000000000000000000000000000000000000000000000' +
42+
'0000000000000000000000000000000000000000000000000000000000000001' +
43+
'985441F84300000000000003983E640900000098EC10797B167D59E419781125' +
44+
'EE36676AA61D9E4F90CDAF0E000000000000000048656C6C6F2053796D626F6C21';
4645

4746
const signedPayload = account.sign(serializedTransactionPayload, generationHash);
4847
console.log(signedPayload);
@@ -51,8 +50,8 @@ console.log(signedPayload);
5150
Encryption and decryption of messages.
5251

5352
```ts
54-
import { MessageEncoder, Account } from "@symbol-blockchain-community/expo-symbol-sdk";
55-
import { Account, NetworkType } from "symbol-sdk";
53+
import { MessageEncoder, Account } from '@symbol-blockchain-community/expo-symbol-sdk';
54+
import { Account, NetworkType } from 'symbol-sdk';
5655

5756
const alice = Account.generateNewAccount(NetworkType.TEST_NET);
5857
const bob = Account.generateNewAccount(NetworkType.TEST_NET);

0 commit comments

Comments
 (0)