|
1 | 1 | # Example core.yaml section
|
2 | 2 |
|
3 |
| -The following example provides descriptions for the various keys required for a Fabric Smart Client node that uses the Token SDK. |
| 3 | +The following example provides descriptions for the various keys required by the Token SDK. |
4 | 4 |
|
5 | 5 | ```yaml
|
6 | 6 | # ------------------- Token SDK Configuration -------------------------
|
@@ -107,35 +107,4 @@ token:
|
107 | 107 | SW:
|
108 | 108 | Hash: SHA2
|
109 | 109 | Security: 256
|
110 |
| - # Internal database to keep track of token transactions. |
111 |
| - # It is used by auditors and token owners to track history |
112 |
| - ttxdb: |
113 |
| - persistence: |
114 |
| - # type can be one of badger, sql or memory. |
115 |
| - type: badger |
116 |
| - opts: |
117 |
| - # persistence location |
118 |
| - path: /some/path |
119 |
| - |
120 |
| - # The sql driver uses golangs database/sql package internally. |
121 |
| - # In theory you can use any driver if you import it in your application; |
122 |
| - # for instance `import _ "github.com/mattn/go-sqlite3"` for the cgo version of sqlite. |
123 |
| - # See https://github.com/golang/go/wiki/SQLDrivers. We only tested with github.com/lib/pq |
124 |
| - # and modernc.org/sqlite, and it's likely that other drivers don't work exactly the same. |
125 |
| - # To try a new sql driver, add a test here: token/services/ttxdb/db/sql/sql_test.go. |
126 |
| - # |
127 |
| - # type: sql |
128 |
| - # opts: |
129 |
| - # createSchema: true # create tables programmatically |
130 |
| - # tablePrefix: tsdk # optional |
131 |
| - # driver: sqlite # in the application, `import _ "modernc.org/sqlite"` |
132 |
| - # dataSource: /some/path/ttxdb.sqlite |
133 |
| - # maxOpenConns: 10 # by default this is 0 (unlimited), sets the maximum number of open connections to the database |
134 |
| - # |
135 |
| - # Alternative (`import _ "github.com/lib/pq"`). |
136 |
| - # The 'dataSource' field can be sensitive (contain a password). In that case, |
137 |
| - # set it in the TTXDB_DATASOURCE environment variable instead of in this file. |
138 |
| - # driver: postgres |
139 |
| - # dataSource: host=localhost port=5432 user=postgres password=example dbname=tokendb sslmode=disable |
140 |
| - |
141 | 110 | ```
|
0 commit comments