|
1 |
| -// Copyright (c) 2024 Hemi Labs, Inc. |
| 1 | +// Copyright (c) 2024-2025 Hemi Labs, Inc. |
2 | 2 | // Use of this source code is governed by the MIT License,
|
3 | 3 | // which can be found in the LICENSE file.
|
4 | 4 |
|
@@ -40,10 +40,6 @@ const (
|
40 | 40 | CmdBitcoinInfoResponse = "bfgapi-bitcoin-info-response"
|
41 | 41 | CmdBitcoinUTXOsRequest = "bfgapi-bitcoin-utxos-request"
|
42 | 42 | CmdBitcoinUTXOsResponse = "bfgapi-bitcoin-utxos-response"
|
43 |
| - CmdAccessPublicKeyCreateRequest = "bfgapi-access-public-key-create-request" |
44 |
| - CmdAccessPublicKeyCreateResponse = "bfgapi-access-public-key-create-response" |
45 |
| - CmdAccessPublicKeyDeleteRequest = "bfgapi-access-public-key-delete-request" |
46 |
| - CmdAccessPublicKeyDeleteResponse = "bfgapi-access-public-key-delete-response" |
47 | 43 | )
|
48 | 44 |
|
49 | 45 | var (
|
@@ -164,22 +160,6 @@ type BTCNewBlockNotification struct{}
|
164 | 160 |
|
165 | 161 | type L2KeystonesNotification struct{}
|
166 | 162 |
|
167 |
| -type AccessPublicKeyCreateRequest struct { |
168 |
| - PublicKey string `json:"public_key"` // encoded compressed public key |
169 |
| -} |
170 |
| - |
171 |
| -type AccessPublicKeyCreateResponse struct { |
172 |
| - Error *protocol.Error `json:"error,omitempty"` |
173 |
| -} |
174 |
| - |
175 |
| -type AccessPublicKeyDeleteRequest struct { |
176 |
| - PublicKey string `json:"public_key"` |
177 |
| -} |
178 |
| - |
179 |
| -type AccessPublicKeyDeleteResponse struct { |
180 |
| - Error *protocol.Error `json:"error,omitempty"` |
181 |
| -} |
182 |
| - |
183 | 163 | type PopTx struct {
|
184 | 164 | BtcTxId api.ByteSlice `json:"btc_tx_id"`
|
185 | 165 | BtcRawTx api.ByteSlice `json:"btc_raw_tx"`
|
@@ -215,10 +195,6 @@ var commands = map[protocol.Command]reflect.Type{
|
215 | 195 | CmdBitcoinInfoResponse: reflect.TypeOf(BitcoinInfoResponse{}),
|
216 | 196 | CmdBitcoinUTXOsRequest: reflect.TypeOf(BitcoinUTXOsRequest{}),
|
217 | 197 | CmdBitcoinUTXOsResponse: reflect.TypeOf(BitcoinUTXOsResponse{}),
|
218 |
| - CmdAccessPublicKeyCreateRequest: reflect.TypeOf(AccessPublicKeyCreateRequest{}), |
219 |
| - CmdAccessPublicKeyCreateResponse: reflect.TypeOf(AccessPublicKeyCreateResponse{}), |
220 |
| - CmdAccessPublicKeyDeleteRequest: reflect.TypeOf(AccessPublicKeyDeleteRequest{}), |
221 |
| - CmdAccessPublicKeyDeleteResponse: reflect.TypeOf(AccessPublicKeyDeleteResponse{}), |
222 | 198 | }
|
223 | 199 |
|
224 | 200 | type bfgAPI struct{}
|
|
0 commit comments